where to find wx package

S

siggi

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)?

Thanks,

Siggi
 
R

Rob Williscroft

siggi wrote in 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.
 
R

Robert Kern

siggi said:
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)?

It's the same project (from the people at www.wxpython.org), they just renamed
the package. You already have it installed.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
S

siggi

Thanks Rob!

siggi

Rob Williscroft said:
siggi wrote in in
comp.lang.python:


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.
 
S

siggi

Thanks to you, too, Robert!

siggi

Robert Kern said:
It's the same project (from the people at www.wxpython.org), they just
renamed
the package. You already have it installed.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma
that is made terrible by our own mad attempt to interpret it as though it
had
an underlying truth."
-- Umberto Eco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top