app.py 343 B

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