app.py 325 B

12345678910
  1. from PyQt5.QtWidgets import QApplication
  2. from frame.win import Win
  3. class App(QApplication): # 扩展QApplication类
  4. def __init__(self): # 实现构造器
  5. super(App, self).__init__([]) # 调用父类构造器(参数:命令行参数)
  6. # 调用Win
  7. self.win = Win()
  8. self.win.show()