from PyQt5.QtWidgets import QApplication from UI.DigitFrom import DigitForm import sys class DigitApp(QApplication): def __init__(self): super(DigitApp, self).__init__(sys.argv) # 创建应用主窗体 self.dlg = DigitForm() self.dlg.show()