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

Phil Thompson phil at riverbankcomputing.com
Wed Mar 3 08:21:07 GMT 2010


On Tue, 2 Mar 2010 15:04:37 -0800 (PST), Jason H <scorp1us at yahoo.com>
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?

Have you actually tried it...

>>> from PyQt4.QtGui import *
>>> app = QApplication([])
>>> w = QWidget()
>>> w.show()

Phil


More information about the PyQt mailing list