栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

初探pyqt5+QtDesigner编写exe

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

初探pyqt5+QtDesigner编写exe

工具:Visual Studio Code

版本:

python37

 pyqt5-5.15.4

pyqt5-tools-5.15.4.3.2

qt安装:

pip install pyqt5

pip install pyqt5-tools

安装后默认在python安装目录下

扩展设置

 

ui转化成py文件

py文件直接运行后没有效果,需加上代码

if __name__ == '__main__':

    app=QtWidgets.QApplication(sys.argv)

    mainwindow = QtWidgets.QMainWindow()

    ui = Ui_MainWindow()

    ui.setupUi(mainwindow)

    mainwindow.show()

    sys.exit(app.exec_())

问题一:找不到designer.exe

看了好多网上的designer配置,没有找到designer.exe

实际路径是在:

C:UsersZingAppDataLocalProgramsPythonPython37Libsite-packagesqt5_applicationsQtbindesigner.exe

问题二:visual无法自动补全

需下载插件Python for VSCode,搜索python第一个就是了。

python实用库faker

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/326935.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号