upgrading python (and other modules)

A

Astan Chee

Hi,
I was once using python 2.4 in win2k with wxPython 2.4.2.4 (if im not
mistaken) with it.
Now i've upgraded to winXP and am using python 2.5 with wxPython 2.8.1.1.
The problem Im currently having is that in my code:

from wxPython.wx import *
from wxPython.grid import *
from wxPython.html import *

no longer works. An error/warning appears:

Warning (from warnings module):
File "C:\stanc_home\WHIP\whip.py", line 7
from wxPython.wx import *
DeprecationWarning: The wxPython compatibility package is no longer
automatically generated or activly maintained. Please switch to the wx
package as soon as possible.

Traceback (most recent call last):
File "C:\stanc_home\WHIP\whip.py", line 10, in <module>
from wxPython.html import *
File "C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wxPython\html.py",
line 151, in <module>
wxHtmlWindowEvent = wx.html.HtmlWindowEvent
AttributeError: 'module' object has no attribute 'HtmlWindowEvent'

How should I be importing in the new wx?
Thanks!
Astan
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top