gui wx incompatibilities with new wxpython 'phoenix'
See original GitHub issueHi,
running a program that uses wxpython gui with iphyton:
ipython --gui wx --i my_program.py
gives an error like:
File “…/site-packages/IPython/terminal/pt_inputhooks/wx.py”, line 76, in inputhook_wx2 assert wx.Thread_IsMain() AttributeError: ‘module’ object has no attribute ‘Thread_IsMain’
On wxpython ‘phoenix’ seems that the method Thread_IsMain
as been replaced by IsMainThread
.
Replacing it on wx.py it seems to work.
I’m running
Python 2.7.10 IPython 5.1.0 wx.version 3.0.3.dev2553+47f1fd2 on OSX 10.11.6
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
wx — wxPython Phoenix 4.2.0 documentation
Everything you need for building typical GUI applications is here. ... The wx.Accessible class allows wxWidgets applications, and wxWidgets itself, ...
Read more >wxPython Project Phoenix Migration Guide
wxPython's Project Phoenix is a new incarnation of the wxPython toolkit in which everything that existed ... A compatibility alias exists so using...
Read more >wxPython Changelog
The code will likely still compile and be compatible with Python 2.7 for some time, but no effort will be put into keeping...
Read more >wx Functions — wxPython Phoenix 4.2.0 documentation
Exits the program immediately. This is a simple wrapper for the standard abort() function. New in version 2.9.4.
Read more >wx.lib.softwareupdate.SoftwareUpdate
This method will check for the availability of a new update, and will ... to the GUI thread will be made to do...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case I had also a problem with a deprecation warning
It seems I fixed my setup with
closed by #11911