Date: Thu, 23 Dec 2004 11:52:40 +0000 From: Rod Person <personrp@hotpop.com> To: Questions FreeBSD <freebsd-questions@freebsd.org> Subject: Python Error, help Message-ID: <200412231152.42075.personrp@hotpop.com>
next in thread | raw e-mail | index | archive | help
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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412231152.42075.personrp>
