本地vscode安装插件:PYQT Integration
右键.py,选择 Run Current File in interactive Window
一些使用PyQt的步骤:
conda activate py38 # 在自己的conda环境中进行配置
pip install PyQt5
pip install pyqt5-tools
# 安装图像化界面 designer
sudo apt-get install qttools5-dev-tools
sudo apt-get install qttools5-dev
PYQT Integration