[IPython-user] Using graphical toolkits
Eduardo Suarez
eduardo at ctm.ulpgc.es
Fri Mar 4 08:47:21 CST 2005
I'm afraid i can't help with qt. I don't know much about it.
On the other hand, i have tried the -gthread option, but when i close
the pygtk app, the ipython blocks. Does it happens just to me? Or is it
supposed to work that way?
Thanks a lot,
-Eduardo Suárez
Fernando Perez wrote:
> 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