VScode Pyqt配置
时间:2021-08-23 08:47:54
收藏:0
阅读:19
VScode Pyqt配置
安装pyqt5
Win + R输入cmd打开命令提示符
pip3 install -i https://mirrors.aliyun.com/pypi/simple/ PyQt5
pip3 install -i https://mirrors.aliyun.com/pypi/simple/ PyQt5-tools
安装vscode扩展
搜素pyqt integration 安装

配置扩展

-
找到 Pyqt-integration ? Pyuic: Cmd 确认内容为 pyuic5

-
找到 Pyqt-integration ? Pyuic ? Compile: Filepath 确认内容为

添加Qt_designer
打开文件管理器,搜索designer.exe 复制路径加上\designer.exe
D:\Python3.9.6\Lib\site-packages\qt5_applications\Qt\bin\designer.exe

使用
创建UI文件:在文件夹右键:PYQT: New Form

编译UI文件:PYQT:compile from
-
编译产生的py文件名和ui文件名对应

-
编译产生的py文件中的类名和designer中objectName名对应


原文:https://www.cnblogs.com/peachaw520/p/15173909.html
评论(0)