class AutomatonWidgetCase(unittest.TestCase): def setUp(self): self.app = QtGui.QApplication(sys.argv) def testShowPage(self): self.window = MainPage() self.window.show() self.assertEqual(self.app.exec(), 0)
def main(): app = QtGui.QApplication(sys.argv) mainWindow = MainPage() mainWindow.show() app.exec()