Python GUI interface development

Installation package

pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --default-timeout=100

pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple/ --default-timeout=100

QT inspection installation

from PyQt5 import QtWidgets, QtGui
import sys

app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget();
window.show()
sys.exit(app.exec_())

A pop-up interface window indicates that the installation is successful.

Reference materials: https://www.cnblogs.com/bu123/p/9895105.html

Guess you like

Origin blog.csdn.net/tandelin/article/details/105321947