pycharm PyQt5 designer pyuic pyrcc 设置

  • 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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值