[IPython-user] Using graphical toolkits

Fernando Perez Fernando.Perez at colorado.edu
Wed Mar 2 21:20:04 CST 2005


John Hunter wrote:
>>>>>>"Eduardo" == Eduardo Suarez <eduardo at ctm.ulpgc.es> writes:
> 
> 
>     Eduardo> Hello all!  I have been told that ipython is able to run
>     Eduardo> pygtk and wxpython interactively. I was wondering if it
>     Eduardo> is possible to run pyqt also.
> 
> Not currently -- but now that matplotlib has a qt backend, this would
> be nice!  Take a look at Shell.py and follow the examples of
> IPShellGTK and IPShellWX -- if you know qt pretty well, it shouldn't
> be too hard to add qt support.  Basically you have to start the GUI
> mainloop in a separate thread and set up a timer or idle handler to
> call self.IP.runcode() periodically.  The GTK implementation was 60
> lines of code, and much of that is version checking and error
> handling.

Indeed, I'd love to accept such a contribution.  I can't offer to do it myself 
at this moment, but it would be great to round up the gui toolkit support in 
ipython with Qt.

Best,

f




More information about the IPython-user mailing list