where to find wx package
Rob Williscroft
rtw at freenet.co.uk
Fri Jan 5 05:09:03 EST 2007
siggi wrote in news:enl7h1$49m$1 at zam602.zam.kfa-juelich.de in
comp.lang.python:
> Hi all,
>
> a newbie question:
>
> I have a program gui03A.py using wxPython, importing it such:
> "from wxPython.wx import *"
>
> The program works, but I get the warning message:
>
> "gui03A.py:4: DeprecationWarning: The wxPython compatibility package
> is no longer automatically generated or activly maintained. Please
> switch to the wx package as soon as possible."
>
> However, after extensive searching on www.python.org and Googling the
> web, I do not find any package with "wx" as its only name.
>
> Where can I get the wx package (for win32 XP)?
The "wx package" talked about above is also part of WxPython,
so you have already got it. To import it use:
import wx
You will need to translate all (well most) identifiers in
your programme from wxBlah to wx.Blah so:
class MyFrame( wxFrame ):
pass
becomes
class MyFrame( wx.Frame ):
pass
Rob.
--
http://www.victim-prime.dsl.pipex.com/
More information about the Python-list
mailing list