upgrading python (and other modules)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Astan Chee

    #1

    upgrading python (and other modules)

    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 *
    DeprecationWarn ing: 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\li b\site-packages\wx-2.8-msw-ansi\wxPython\h tml.py",
    line 151, in <module>
    wxHtmlWindowEve nt = wx.html.HtmlWin dowEvent
    AttributeError: 'module' object has no attribute 'HtmlWindowEven t'

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

Working...