[PyQt] Is there a way to run the interp AND a gui?

"V. Armando Solé" sole at esrf.fr
Thu Mar 4 08:29:33 GMT 2010


Jason H wrote:
> I am working on the new Qt/Kinetic stuff and one thing I would really like to have is an interactive GUI for it. Ideally, I'd have something like the interactive interpreter, which when I type x=QGrahpicsTextItem(...) and add it to the scene, it appears in the scene. Then I can do that with graphics effects and test out animations. 
>
> The problem though, is the event loop needs to be running for the painting to happen. So I am confused if this is even possible? I'd even settle for some IPC that would translate commands to a seperate process running the GUI, if there was a way to do it (so that then I do x=QGrahicstextItem(...) x is actually a handle to the actual object in another process. But this looks waaay complicated. 
>
> Thoughts?
>   

Perhaps you could take a look at how it is done in ipython.

When you start ipython as "ipython -q4thread" you have what you seem to 
be looking for. Perhaps it is worth to take
a look at it.

Armando



More information about the PyQt mailing list