摘要: import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import QIcon import requests class fileDialogdemo(QWidget): def __init__(self, parent=None): 阅读全文
posted @ 2021-09-30 16:25 Bonnie_ξ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1. 如何加上图标 接着直接在项目路径下打开命令行窗口输入以下打包命令: pyinstaller -F -w -i ./smile.ico belle.py 这里新增的-i就是给程序添加图标的命令,我们需要在该命令后添加图标的路径,这个路径可以是相对路径,也可以是绝对路径: pyinstaller 阅读全文
posted @ 2021-09-30 15:13 Bonnie_ξ 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 方式一:直接加载UI文件 from PyQt5.QtWidgets import QApplication, QWidget import sys class win(QWidget): def __init__(self): super().__init__() self.resize(300,3 阅读全文
posted @ 2021-09-30 14:17 Bonnie_ξ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 使用命令行 ui-->py python -m PyQt5.uic.pyuic demo.ui -o demo.py 阅读全文
posted @ 2021-09-30 10:38 Bonnie_ξ 阅读(39) 评论(0) 推荐(0) 编辑