Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 2004 11:51:54 +0000
From:      Rod Person <personrp@hotpop.com>
To:        Questions FreeBSD <freebsd-questions@freebsd.org>
Subject:   Python Error, help
Message-ID:  <200412231151.54083.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=20
run this example script:

import pyui

def onPress(button):
    print "the button was pressed"

pyui.init(320,320,"gl")

newFrame =3D pyui.widgets.Frame(10, 10, 200, 200, "hello world!")
newFrame.setLayout(pyui.layouts.GridLayoutManager(3,3))

for i in range(0,9):
    button =3D pyui.widgets.Button("button #%s" % i, onPress)
    newFrame.addChild(button)
   =20
newFrame.pack()
pyui.run()
pyui.quit()


I get the following Error:
 No module named WGL__init__
 File /usr/local/lib/python2.3/site-packages/OpenGL/WGL/__init__.py, Line:2

I'm using the Eric3 IDE, also.

I can't find anything in Google or MARC lists...Any help please.

Thanks.


=2D-=20
Rod

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"If you stay the same long enough you'll be in=20
 style some day again." =A0Cren Dog=20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412231151.54083.personrp>