import PyQt5.QtCore from frame.app import App PyQt5.QtCore.QCoreApplication.setAttribute(PyQt5.QtCore.Qt.AA_EnableHighDpiScaling) app = App() app.exec() #消息循环阻塞函数 print("程序正常终止")