Thanks Rob!

siggi

"Rob Williscroft" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
> siggi wrote in news:[EMAIL PROTECTED] 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/ 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to