ui.py 555 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2023/05/17 13:27:58
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : enter point
  8. 可视化界面设置参数,启动爬虫
  9. '''
  10. import sys
  11. from PyQt5.QtWidgets import QApplication
  12. from PyQt5.QtGui import QIcon
  13. if __name__=='__main__':
  14. app= QApplication(sys.argv)
  15. app = QApplication(sys.argv)
  16. ui = MainWindow()
  17. icon = QIcon("taobao.ico")
  18. ui.setWindowIcon(icon)
  19. ui.show()
  20. sys.exit(app.exec_())