def main(): app = QApplication(sys.argv) window = MainWindow() window.show() window.raise_() return app.exec_()