IPShellWX blocks until command line code is run.
Bug #396761 reported by
mulicheng
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Committed
|
Undecided
|
Brian Granger |
Bug Description
Other threaded shells create self.IP after hijacking the main loop of the target front end. The WX shell creates self.IP, checks wxversion, and then hijacks the main thread. The result is that
> ipython -wthread myapp.py
Will block until myapp finished.
Seems like the only thing wxversion needed IP for, was to use the InteractiveTB method. Perhaps a different ordering of calls can be established so that launching wx apps from the command line does not block.
To post a comment you must log in.
The new PyOS_InputHook implementation completely solves this issue.