Python Error, help
Rod Person
personrp at hotpop.com
Thu Dec 23 08:52:34 PST 2004
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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list