[Ipython-tickets] [IPython] #161: use of Qt4 for Multithreading

IPython ipython-tickets@scipy....
Fri May 25 07:24:02 CDT 2007


#161: use of Qt4 for Multithreading
-------------------------+--------------------------------------------------
 Reporter:  tecki        |       Owner:  fperez
     Type:  enhancement  |      Status:  new   
 Priority:  normal       |   Milestone:        
Component:  ipython      |     Version:        
 Severity:  normal       |    Keywords:        
-------------------------+--------------------------------------------------
 Currently, the multi-threaded Qt4 version of ipython is implemented such
 that
 the GUI thread is constantly polling (every 100 ms) for new commands.
 While this
 is working well, it is not really nice style.

 In Qt4 there is a nice way of doing dispatching, by making use of Qt4
 signals, which can be sent between task. I propose to implement Qt4
 multithreading as follows:

 Every time the user wants a command to be executed, a signal is sent to
 the GUI thread demanding it to execute the command, afterwards waiting
 until this is done.

 Such an implementation has the side advantage that it only uses Qt4
 multithreading
 and as such has less compatibility issues if used in a Qt4 environment.

 I added an example implementation. Remark: pyqt4 recently had issues with
 inter-thread signals, but those have been solved in the newest versions.

-- 
Ticket URL: <http://projects.scipy.org/ipython/ipython/ticket/161>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list