Please see the following session transcript: $ python 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?
Thanks. Shriramana Sharma. _______________________________________________ PyQt mailing list [EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt