From owner-freebsd-questions@FreeBSD.ORG Thu Dec 23 16:51:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B307216A4CE for ; Thu, 23 Dec 2004 16:51:50 +0000 (GMT) Received: from smtp-out.hotpop.com (smtp-out.hotpop.com [38.113.3.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63EBA43D41 for ; Thu, 23 Dec 2004 16:51:50 +0000 (GMT) (envelope-from personrp@hotpop.com) Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id 742FE12D721F for ; Thu, 23 Dec 2004 16:51:43 +0000 (UTC) Received: from 110-ccbh-131.ccbh.upmc.edu (110-ccbh-131.ccbh.upmc.edu [128.147.110.131]) by smtp-2.hotpop.com (Postfix) with ESMTP id E2CBFB41E17 for ; Thu, 23 Dec 2004 16:51:40 +0000 (UTC) From: Rod Person Organization: Open Source Beef To: Questions FreeBSD Date: Thu, 23 Dec 2004 11:51:54 +0000 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412231151.54083.personrp@hotpop.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Subject: Python Error, help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: personrp@hotpop.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 16:51:50 -0000 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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++