diff --git a/main.py b/main.py new file mode 100644 index 0000000..09fac79 --- /dev/null +++ b/main.py @@ -0,0 +1,21 @@ +from MainWidget import MainWidget +from PyQt5.QtWidgets import QApplication +import sys + + +def main(): + app = QApplication(sys.argv) + + # 新建主界面 + mainWidget = MainWidget() + + # 显示主界面 + mainWidget.show() + + # 消息循环 + exit(app.exec_()) + + +if __name__ == '__main__': + print("Start") + main() \ No newline at end of file