where to find wx package

siggi smusnmrNOSPAM at yahoo.com
Fri Jan 5 08:56:52 EST 2007


Thanks Rob!

siggi

"Rob Williscroft" <rtw at freenet.co.uk> schrieb im Newsbeitrag 
news:Xns98AF674C4339FrtwfreenetREMOVEcouk at 216.196.109.145...
> 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