标签:rgs 手动 sid 配置方法 and str with pen 安装
需求:
1、习惯了sublime,开发pyqt程序时,不如vscode或者eric6等IDE调用qtdesigner设计窗口方便。
2、需要转到窗口文件目录下,手动使用pyuic5命令转换ui文件。
配置方法:
1、 安装SideBarEnhancements
2、 安装Terminus (一款功能强大的终端工具)
3、 在Packages\User目录下新建Side Bar.sublime-menu文件,文件中输入以下内容:
[
{
// 新建ID,名称唯一
"caption":"PyQt5工具",
"id": "PYQT5",
"children":
[
{
// 菜单中显示的名称
"caption":"Qtdesigner新建窗体",
"command": "terminus_open",
"args" : {
"cwd":"${file_path:${folder}}",
"cmd":["designer.exe"],
}
},
{
"caption": "Qtdesigner编辑窗体",
"command": "terminus_open",
"args" : {
"cwd":"${file_path:${folder}}",
"cmd":["designer.exe", "$file" ],
}
},
{
"caption": "编译为py文件",
// "id": "compile-to-py-with-pyuic511111",
"command": "terminus_open",
"args" : {
"cwd":"${file_path:${folder}}",
"cmd":["pyuic5.exe","-o", "$file_base_name.py","$file" ],
}
},
]
标签:rgs 手动 sid 配置方法 and str with pen 安装
原文地址:https://www.cnblogs.com/blackangeldsf/p/13211968.html