[app] restructure to have a valid entry point

This commit is contained in:
Jan Grewe 2024-09-26 16:30:14 +02:00
parent 26f43151a2
commit 836d6dc3d9

View File

@ -137,8 +137,12 @@ class PyRelacs(QMainWindow):
self.p = None
if __name__ == "__main__":
def main():
app = QApplication(sys.argv)
window = PyRelacs()
window.show()
app.exec()
if __name__ == "__main__":
main()