安装
pip install PyQt5 -i https://pypi.douban.com/simple
pip install PyQt5-tools -i https://pypi.douban.com/simple
测试
designer
验证
import sys from PyQt5.QtWidgets import QWidget, QApplication app = QApplication(sys.argv) widget = QWidget() widget.resize(640, 480) widget.setWindowTitle("Hello, PyQt5!") widget.show() sys.exit(app.exec())
标签:widget,app,PyQt5,sys,pyqt5,QWidget,win10,import,安装
From: https://www.cnblogs.com/gooutlook/p/17698044.html