From owner-freebsd-questions@FreeBSD.ORG Thu Dec 23 16:52:34 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 342E816A4CE for ; Thu, 23 Dec 2004 16:52:34 +0000 (GMT) Received: from smtp-out.hotpop.com (smtp-out.hotpop.com [38.113.3.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB6B343D2D for ; Thu, 23 Dec 2004 16:52:33 +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 75FC9C0FFE4 for ; Thu, 23 Dec 2004 16:52:29 +0000 (UTC) Received: from 110-ccbh-131.ccbh.upmc.edu (110-ccbh-131.ccbh.upmc.edu [128.147.110.131]) by smtp-3.hotpop.com (Postfix) with ESMTP id EEAD912D808B for ; Thu, 23 Dec 2004 16:52:27 +0000 (UTC) From: Rod Person Organization: Open Source Beef To: Questions FreeBSD Date: Thu, 23 Dec 2004 11:52:40 +0000 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200412231152.42075.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:52:34 -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__ =2D-=20 Rod ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "If you stay the same long enough you'll be in=20 style some day again." =A0Cren Dog=20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++