交流学习,如有错误欢迎指正。by: wwdeng QQ:435398366
1. PyQt5安装
python -m pip install --upgrade pip
pip install PyQt5 PyQt5-tools
2. Pycharm 配置
打开pycharm -> Settings -> Tools -> External Tools
2.1 添加Qt Designer工具
Name:Qt Designer
program:Qt Designer安装路径(e.g. C:\Users\think\AppData\Local\Programs\Python\Python37\Lib\site-packages\qt5_applications\Qt\bin\designer.exe)
Arguments:$FileName$
Working directory:$FileDir$
2.2 添加pyuic工具
Name:pyuic
program:pyuic5安装路径(e.g. C:\Program Files\Python37\Scripts\pyuic5.exe)
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
2.3 添加pyrcc工具
Name:pyrcc
program:pyrcc安装路径(e.g. C:\Program Files\Python37\Scripts\pyrcc5.exe)
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
交流学习,如有错误欢迎指正。by: wwdeng QQ:435398366
|