wxpython example on windows with python3.5 and wxPython-4.0.0a

244 views
Skip to first unread message

Andrew Leech

unread,
Apr 17, 2017, 11:43:11 PM4/17/17
to CEF Python
Firstly I just want to say a big thanks (to you and your sponsors) for getting cross platform cefpython up and running again!!!

On a related not, the wxPython Phoenix project has just dropped it's first (alpha) release!

I've done some initial testing on Windows and there's a couple of little changes required to the wxpython.py sample app to support the pheonix api:
* wx.Timer needs a different method of binding the event
* wx.Panel().GetClientSizeTuple() is gone, replace with wx.Panel().GetClientSize().Get()
* OnExit() should return an int.

Full working code attached, or I'm happy to make a pull request if you're interested?

wxpython.py

Czarek Tomczak

unread,
Apr 18, 2017, 1:23:47 AM4/18/17
to CEF Python
I'm having trouble installing wxPython 4.0 on Linux (Ubuntu 14.04). Any idea? Logs below:

The configuration failed
    (complete log in /tmp/pip-build-j042bsx8/wxPython/build/waf/3.6/config.log)
    Command '"/home/cz/.pyenv/versions/3.6.0/bin/python3.6" /tmp/pip-build-j042bsx8/wxPython/bin/waf-1.7.15-p1 --wx_config=/tmp/pip-build-j042bsx8/wxPython/build/wxbld/wx-config --python="/home/cz/.pyenv/versions/3.6.0/bin/python3.6" --out=build/waf/3.6 configure build ' failed with exit code 1.
    Finished command: build_py (0m1.222s)
    Finished command: build (0m1.852s)
    Command '"/home/cz/.pyenv/versions/3.6.0/bin/python3.6" -u build.py build' failed with exit code 1.


Recently I've also tried installing wxPython 3.0 on Linux and failed as well.

Czarek Tomczak

unread,
Apr 18, 2017, 1:47:09 AM4/18/17
to CEF Python
Thanks Andrew for the patch. I've already commited it, the changes do work fine with old wxpython so it's good. Created Issue #348 for this.


On Tuesday, April 18, 2017 at 3:43:11 AM UTC, Andrew Leech wrote:

Andrew Leech

unread,
Apr 18, 2017, 2:00:52 AM4/18/17
to CEF Python
My primary dev environs are osx and windows which are more easily supported by the wheels. That being said I can't get cefpython3 to work with  wxPython 4 on mac at all yet, different issue(s) I'll document later.
I haven't tried building the library myself yet.

There are a mix of snapshots pre-built although I don't think there's any 3.6 yet:

Related discussions:

I'd like to set up an example of an autobuild for the wxpython project based on the pypa manylinux docker image to simplify the fragmentation issue, but not sure if/when I'll find the time.

Czarek Tomczak

unread,
Apr 18, 2017, 3:07:51 AM4/18/17
to CEF Python
Thanks. Finally I made it run on Python 3.4. Linux required additional fixes, applied in #349. The mac issue you're having may be similar to Linux issue, see details in #348.
Reply all
Reply to author
Forward
0 new messages