Hello,
What is the "policy of crashing" for application that use PySide?
Consider example:
import sys
from PySide import QtCore, QtGui
# Forgot to initialize QApplication.
# app = QtGui.QApplication(sys.argv)
try:
win = QtGui.QWidget()
finally:
print "done"
Last string (print "done") will not be reached because running
"QtGui.QWidget()" without initialized QApplication prints
> QWidget: Must construct a QApplication before a QPaintDevice
and exits python process with error code 1.
May be such exceptional situations inside Qt should be treated as
exceptions in Python?
--
Vladimir Rutsky
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside