[app] restructure to have a valid entry point
This commit is contained in:
parent
26f43151a2
commit
836d6dc3d9
@ -137,8 +137,12 @@ class PyRelacs(QMainWindow):
|
|||||||
self.p = None
|
self.p = None
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
window = PyRelacs()
|
window = PyRelacs()
|
||||||
window.show()
|
window.show()
|
||||||
app.exec()
|
app.exec()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user