[PyQt] Is there a way to run the interp AND a gui?
Jason H
scorp1us at yahoo.com
Fri Mar 5 03:21:20 GMT 2010
Hah, I guess I am showing my old VB colors :-)
This is freaking awesome!
----- Original Message ----
From: Phil Thompson <phil at riverbankcomputing.com>
To: Jason H <scorp1us at yahoo.com>
Cc: PyQt <pyqt at riverbankcomputing.com>
Sent: Thu, March 4, 2010 3:58:56 AM
Subject: Re: [PyQt] Is there a way to run the interp AND a gui?
On Wed, 3 Mar 2010 18:51:35 -0800 (PST), Jason H <scorp1us at yahoo.com>
wrote:
> Undoubtedly, that would work for showing the widget. And yes, I've done
> that much. Unless something has changed recently, I eventually have to
> call app.exec_(), which would block until last window has closed...
>
> I seems the previous email of calling eval() might be the right route.
show() doesn't display a widget - it schedules the paint of the widget for
the next iteration of the event loop. Therefore if the widget is visible
then the event loop is running. Therefore you do not need to run exec_().
Phil
More information about the PyQt
mailing list