def setUpClass(cls): """ Create the application for the test case. """ cls._app = QtGui.QApplication.instance() if cls._app is None: cls._app = QtGui.QApplication([]) cls._app.setQuitOnLastWindowClosed(False)
def init_qt_app(self): # separate from qt_elements, because it must run first self.app = QtGui.QApplication([])