QApplication¶
Attributes¶
qconcurrency.QApplication.staticMetaObject |
Methods¶
qconcurrency.QApplication.__init__([PySequence]) |
|
||||
qconcurrency.QApplication.staticMetaObject |
|||||
Documentation¶
-
class
qconcurrency.QApplication(PySequence=None, *args, **kwds)[source]¶ Bases:
PySide.QtGui.QApplicationQApplication that can be used in a with statement, automatically exits when the last widget is deleted, or at the occurrence of an unhandled exception.
Does nothing if a QApplication already exists ( Such as from within programs like Autodesk_Maya, that will have already created a QApplication for you )
Example
with QApplication(): btn = QtWidgets.QPushButton('boo') btn.show() # ... # when window is closed by user, QApplication exits
-
__init__(PySequence=None, *args, **kwds)[source]¶ Parameters: PySequence (tuple, optional) – An optional tuple of arguments to pass to your QApplication’s __init__ method. ( uses sys.argvby default. )
-
staticMetaObject= <PySide.QtCore.QMetaObject object>¶
-