Hah, I guess I am showing my old VB colors  :-)

This is freaking awesome! 



----- Original Message ----
From: Phil Thompson <p...@riverbankcomputing.com>
To: Jason H <scorp...@yahoo.com>
Cc: PyQt <pyqt@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 <scorp...@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



      

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to