where to find wx package

Discussion in 'Python' started by siggi, Jan 5, 2007.

  1. siggi

    siggi Guest

    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
    siggi, Jan 5, 2007
    #1
    1. Advertising

  2. siggi wrote in news:enl7h1$49m$-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/
    Rob Williscroft, Jan 5, 2007
    #2
    1. Advertising

  3. siggi

    Robert Kern Guest

    siggi wrote:
    > 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
    Robert Kern, Jan 5, 2007
    #3
  4. siggi

    siggi Guest

    Thanks Rob!

    siggi

    "Rob Williscroft" <> schrieb im Newsbeitrag
    news:Xns98AF674C4339FrtwfreenetREMOVEcouk@216.196.109.145...
    > siggi wrote in news:enl7h1$49m$-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/
    siggi, Jan 5, 2007
    #4
  5. siggi

    siggi Guest

    Thanks to you, too, Robert!

    siggi

    "Robert Kern" <> schrieb im Newsbeitrag
    news:...
    > siggi wrote:
    >> 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
    >
    siggi, Jan 5, 2007
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Parvinder
    Replies:
    6
    Views:
    733
    Thomas G. Marshall
    Feb 27, 2005
  2. Wybo Dekker
    Replies:
    1
    Views:
    339
    Yukihiro Matsumoto
    Nov 15, 2005
  3. Krishna Chaitanya
    Replies:
    5
    Views:
    157
    Gunnar Hjalmarsson
    Apr 3, 2009
  4. vdvorkin
    Replies:
    0
    Views:
    389
    vdvorkin
    Feb 10, 2011
  5. vdvorkin
    Replies:
    3
    Views:
    796
    vdvorkin
    Feb 14, 2011
Loading...

Share This Page