[PyQt] A Qt error pushed me out of Python
samjnaa at gmail.com
Fri Apr 13 15:37:02 BST 2007
Please see the following session transcript:
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 . QtGui import QMessageBox
>>> QMessageBox . critical ( None, "FOO", "FOO" )
QWidget: Must construct a QApplication before a QPaintDevice
Notice that I was pushed OUT of Python! It did not just raise an error
and allow me to remain within Python to fix it. Looks like the error
raised by Qt was not handling intelligently.
I request comments on why this is happening and should it happen like
this. If not, can it be fixed?
More information about the PyQt