wxPython for Python 3

后端 未结 8 2274
星月不相逢
星月不相逢 2020-12-13 13:15

Does wxPython have a version for Python 3?

If it does, where can I get it?

相关标签:
8条回答
  • 2020-12-13 14:03

    Confirmed wxpython works with python3.3. System spec: Windows 8.1 64bit. Python was a first time install on this new machine (so no previous versions exist). Objective: get matplotlib to work with their wx examples.

    Setup Notes:

    1. Grab the wxpython from the snapshot library listed in Werners post above (eg wxpython for py3.3, 64 bit). wxversion was not included, so obtained it from mit. Also place it in site-packages.

    2. convert the content in wxversion to be compatible with py 3.3. ie replace has_key with in and the try except constructs to use as instead of ",". When you run the code within eclipse or similar the interpreter will tell you what it doesn't like.

    3. For the matplotlib setup I didnt need to add wxversion.select() into the example code, but matplotlib did need that module. Trying a select() call would fail for any version I chose (even with a long range of possible version X.X numbers).

    0 讨论(0)
  • 2020-12-13 14:06

    No binary installers yet, but regular snapshot builds which are easy to install.

    http://wxpython.org/Phoenix/snapshot-builds/

    I run it on Windows and just create a folder in site-packages e.g. "\site-packages\wx-2.9.6-msw" and copy the "wx" folder from the snapshot-build into it and then I use wxversion to work with it.

    import wxversion
    import twcbsrc.configdev as cfd
    wxversion.select('2.9.6')
    
    0 讨论(0)
提交回复
热议问题