加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python.json 649 Bytes
一键复制 编辑 原始数据 按行查看 历史
吴清华 提交于 2023-12-23 17:26 . 型号:1223
{
"pyside to main": {
"prefix": "psmain",
"body": [
"if __name__ == '__main__':",
" app = QApplication(sys.argv)",
" main_window = $2",
" main_window.show()",
" sys.exit(app.exec_())",
],
"description": "启动界面类"
},
"pyside to window": {
"prefix": "pswin",
"body": [
"import sys",
"from PySide6.QtWidgets import QApplication, QMainWindow",
"from $1 import $2",
"",
"class MainWindow(QMainWindow,${2:value}):",
" def __init__(self,parent=None):",
" super(MainWindow, self).__init__(parent)",
" self.setupUi(self)",
],
"description": "界面初始化"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化