[PyQt] qApp does not return None when no QApplication has been
instantiated
Gerard Vermeulen
gerard.vermeulen at grenoble.cnrs.fr
Tue Jul 24 05:51:08 BST 2007
$python -E
Python 2.5.1 (r251:54863, May 29 2007, 07:42:28)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.Qt as Qt
>>> print Qt.QCoreApplication.instance()
None
>>> print Qt.qApp
<PyQt4.QtGui.QApplication object at 0x2b78540079e0>
>>>
Gerard
More information about the PyQt
mailing list