安装PyCharm
https://blog.csdn.net/Goldxwang/article/details/84666088
安装PyQt5
https://blog.csdn.net/sinat_21427221/article/details/77448857
配置和使用PyCharm
https://blog.csdn.net/u013247461/article/details/85063284
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '22.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 600) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.comboBox = QtWidgets.QComboBox(self.centralwidget) self.comboBox.setGeometry(QtCore.QRect(260, 170, 69, 22)) self.comboBox.setObjectName("comboBox") self.horizontalSlider = QtWidgets.QSlider(self.centralwidget) self.horizontalSlider.setGeometry(QtCore.QRect(460, 170, 160, 22)) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(240, 350, 54, 12)) self.label.setObjectName("label") self.text