I'm trying to teach myself python. I installed py-ui package and I'm trying to
run this example script:
import pyui
def onPress(button):
print "the button was pressed"
pyui.init(320,320,"gl")
newFrame = pyui.widgets.Frame(10, 10, 200, 200, "hello world!")
newFrame.setLayout(pyui.layouts.GridLayoutManager(3,3))
for i in range(0,9):
button = pyui.widgets.Button("button #%s" % i, onPress)
newFrame.addChild(button)
newFrame.pack()
pyui.run()
pyui.quit()
I get the following Error:
No module named WGL__
--
Rod
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"If you stay the same long enough you'll be in
style some day again." �Cren Dog
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"