app.py 302 B

12345678910
  1. from PyQt5.QtWidgets import QApplication
  2. from .win import Win
  3. # from form.win import Win
  4. class App(QApplication):
  5. def __init__(self):
  6. super(App, self).__init__([]) # 调用父类构造器,完成初始化
  7. self.win = Win()
  8. self.win.resize(500, 500)
  9. self.win.show()