- python3.9
- pycharm
pip install PyQt5
pip install PyQt5-tools
Designer
designer.exe路径在:
%Python%\Lib\site-packages\qt5_applications\Qt\bin
External Tools setting:
- Program:
C:\Program Files\Python39\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
- Arguments:
$FileName$
- Working Directory:
$FileDir$
PyUIC
PyUIC路径在:
%Python%\Scripts\pyuic5.exe
External Tools setting:
- Program:
C:\Program Files\Python39\Scripts\pyuic5.exe
- Arguments:
$FileName$ -o $FileNameWithoutExtension$.py
- Working Directory:
$FileDir$
Usage: pyuic5 [options] <ui-file>
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-p, --preview show a preview of the UI instead of generating code
-o FILE, --output=FILE
write generated code to FILE instead of stdout
-x, --execute generate extra code to test and display the class
-d, --debug show debug output
-i N, --indent=N set indent width to N spaces, tab if N is 0 [default:
4]
Code generation options:
--import-from=PACKAGE
generate imports of pyrcc5 generated modules in the
style 'from PACKAGE import ...'
--from-imports the equivalent of '--import-from=.'
--resource-suffix=SUFFIX
append SUFFIX to the basename of resource files
[default: _rc]
PyRCC
designer.exe路径在:
~\Lib\site-packages\qt5_applications\Qt\bin
External Tools setting:
- Program:
C:\Program Files\Python39\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
- Arguments:
FileName$ -o $FileNameWithoutExtension$_rc.py
- Working Directory:
$FileDir$
PyQt5 resource compiler
Usage: pyrcc5 [options] <inputs>
Options:
-o file Write output to file rather than stdout
-threshold level Threshold to consider compressing files
-compress level Compress input files by level
-root path Prefix resource access path with root path
-no-compress Disable all compression
-version Display version
-help Display this information