1from PyQt5 import QtWidgets
2from PyQt5.QtWidgets import QApplication, QMainWindow
3import sys
4
5def window():
6 app = QApplication(sys.argv)
7 win = QMainWindow()
8 win.setGeometry(400,400,500,300)
9 win.setWindowTitle("CodersLegacy")
10
11 #.....
12
13 win.show()
14 sys.exit(app.exec_())
15
16window()
17