On Mon Mar 2 19:12:00 GMT 2009, Brent Villalobos wrote:
> Brian Kelley wrote:
> > When you start another mainwindow (or top level widget for that
> > matter) you don’t need to call exec_ or make another QApplication.
>
> That's good. Along those same lines does Qt provide a way of querying
> whether a QApplication loop is already running so you can avoid making a
> new one?

If you really need to know, it may be possible to tell by attempting to
obtain a QAbstractEventDispatcher instance.

Call the QAbstractEventDispatcher.instance() static method to see if one
has been created:

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qabstracteventdispatcher.html#instance

David

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

Reply via email to