I hope I am reporting this right, anyway. When in the Python Interpreter. If you attempt to create a QWidget before a QApplication, you get the following error. AND the interpreter quits. I would have expected an exception to be raised and the interpreter to stay open. It is only a minor annoyance, and really one should only get bit once by this.
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtGui, QtCore
>>> myWidget = QtGui.QWidget()
QWidget: Must construct a QApplication before a QPaintDevice