update 首次更新

This commit is contained in:
FrankCV2048
2024-08-02 23:25:00 +08:00
commit a70911d5ce
9 changed files with 55591 additions and 0 deletions

42
ThreadTest.py Normal file
View File

@ -0,0 +1,42 @@
import sys
import time
from PySide6.QtCore import QThread, Signal, Slot
from PySide6.QtWidgets import QMainWindow, QApplication, QLineEdit
from ui_untitled import Ui_MainWindow
class WorkerThread(QThread):
# 定义一个信号,用于在计数完成后发送结果到主线程
result_signal = Signal(int)
finished = Signal()
def run(self):
count = 0
for i in range(1, 11):
count += i
time.sleep(1) # 模拟耗时操作
self.result_signal.emit(count)
# 发射信号
self.finished.emit()
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setupUi(self)
#self.line = QLineEdit("设置")
# self.btn_1.clicked.connect(self.start_count)
# 创建并启动后台线程
if __name__ == '__main__':
app = QApplication(sys.argv)
win = MainWindow()
win.show()
app.exec()

18
app.py Normal file
View File

@ -0,0 +1,18 @@
import sys
from PySide6.QtWidgets import QMainWindow, QApplication
from ui_untitled import Ui_MainWindow
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setupUi(self)
if __name__ == '__main__':
app = QApplication(sys.argv)
win = MainWindow()
win.show()
app.exec()

BIN
data/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 KiB

BIN
data/robot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

25
main.py Normal file
View File

@ -0,0 +1,25 @@
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton
from ui_untitled import Ui_MainWindow;
class MyWindow(QMainWindow,Ui_MainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("PySide6 Test")
self.setGeometry(100, 100, 300, 200)
self.button = QPushButton("Click Me!", self)
self.button.setGeometry(100, 100, 100, 40)
self.button.clicked.connect(self.on_button_click)
def on_button_click(self):
self.button.setText("Clicked!")
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MyWindow()
window.show()
sys.exit(app.exec())

6
resources.qrc Normal file
View File

@ -0,0 +1,6 @@
<RCC>
<qresource prefix="Image">
<file>data/1.png</file>
<file>data/robot.png</file>
</qresource>
</RCC>

54158
resources_rc.py Normal file

File diff suppressed because it is too large Load Diff

381
ui_untitled.py Normal file
View File

@ -0,0 +1,381 @@
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'untitled.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QFrame, QLabel, QMainWindow,
QPushButton, QSizePolicy, QSlider, QTextEdit,
QWidget)
import resources_rc
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(837, 627)
MainWindow.setStyleSheet(u"background-color: rgb(12, 78, 139);")
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.frame = QFrame(self.centralwidget)
self.frame.setObjectName(u"frame")
self.frame.setGeometry(QRect(10, 20, 121, 551))
self.frame.setStyleSheet(u"background-color: #E6ECF5;\n"
"border-radius: 10px;")
self.frame.setFrameShape(QFrame.Shape.StyledPanel)
self.frame.setFrameShadow(QFrame.Shadow.Raised)
self.pushButton_8 = QPushButton(self.frame)
self.pushButton_8.setObjectName(u"pushButton_8")
self.pushButton_8.setGeometry(QRect(10, 20, 91, 51))
self.pushButton_8.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 700 9pt \"Microsoft YaHei UI\";")
self.pushButton_13 = QPushButton(self.frame)
self.pushButton_13.setObjectName(u"pushButton_13")
self.pushButton_13.setGeometry(QRect(120, 310, 71, 41))
self.pushButton_13.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 700 9pt \"Microsoft YaHei UI\";")
self.frame_2 = QFrame(self.centralwidget)
self.frame_2.setObjectName(u"frame_2")
self.frame_2.setGeometry(QRect(140, 20, 681, 551))
self.frame_2.setStyleSheet(u"background-color: #E6ECF5;\n"
"border-radius: 10px;")
self.frame_2.setFrameShape(QFrame.Shape.StyledPanel)
self.frame_2.setFrameShadow(QFrame.Shadow.Raised)
self.pushButton_3 = QPushButton(self.frame_2)
self.pushButton_3.setObjectName(u"pushButton_3")
self.pushButton_3.setGeometry(QRect(40, 20, 101, 31))
self.pushButton_3.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;")
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.ListAdd))
self.pushButton_3.setIcon(icon)
self.pushButton_4 = QPushButton(self.frame_2)
self.pushButton_4.setObjectName(u"pushButton_4")
self.pushButton_4.setGeometry(QRect(170, 20, 101, 31))
self.pushButton_4.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;")
self.pushButton_5 = QPushButton(self.frame_2)
self.pushButton_5.setObjectName(u"pushButton_5")
self.pushButton_5.setGeometry(QRect(300, 20, 101, 31))
self.pushButton_5.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;")
self.pushButton_6 = QPushButton(self.frame_2)
self.pushButton_6.setObjectName(u"pushButton_6")
self.pushButton_6.setGeometry(QRect(430, 20, 101, 31))
self.pushButton_6.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;")
self.pushButton_7 = QPushButton(self.frame_2)
self.pushButton_7.setObjectName(u"pushButton_7")
self.pushButton_7.setGeometry(QRect(560, 20, 101, 31))
self.pushButton_7.setStyleSheet(u"background-color: #F9FAFC;\n"
"font: 12pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;")
self.frame_3 = QFrame(self.frame_2)
self.frame_3.setObjectName(u"frame_3")
self.frame_3.setGeometry(QRect(40, 60, 621, 441))
self.frame_3.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.frame_3.setFrameShape(QFrame.Shape.StyledPanel)
self.frame_3.setFrameShadow(QFrame.Shadow.Raised)
self.label_4 = QLabel(self.frame_3)
self.label_4.setObjectName(u"label_4")
self.label_4.setGeometry(QRect(20, 30, 251, 381))
self.label_4.setStyleSheet(u"border-image: url(:/Image/data/robot.png);\n"
"background-position:center;\n"
"background-repeat:no-repeat;")
self.label_4.setScaledContents(True)
self.horizontalSlider = QSlider(self.frame_3)
self.horizontalSlider.setObjectName(u"horizontalSlider")
self.horizontalSlider.setGeometry(QRect(310, 110, 231, 41))
self.horizontalSlider.setOrientation(Qt.Orientation.Horizontal)
self.label_5 = QLabel(self.frame_3)
self.label_5.setObjectName(u"label_5")
self.label_5.setGeometry(QRect(550, 120, 31, 21))
self.label_5.setStyleSheet(u"font: 9pt \"\u6977\u4f53\";")
self.pushButton_20 = QPushButton(self.frame_3)
self.pushButton_20.setObjectName(u"pushButton_20")
self.pushButton_20.setGeometry(QRect(300, 30, 61, 31))
self.pushButton_20.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_21 = QPushButton(self.frame_3)
self.pushButton_21.setObjectName(u"pushButton_21")
self.pushButton_21.setGeometry(QRect(370, 30, 61, 31))
self.pushButton_21.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_22 = QPushButton(self.frame_3)
self.pushButton_22.setObjectName(u"pushButton_22")
self.pushButton_22.setGeometry(QRect(440, 30, 61, 31))
self.pushButton_22.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_23 = QPushButton(self.frame_3)
self.pushButton_23.setObjectName(u"pushButton_23")
self.pushButton_23.setGeometry(QRect(510, 30, 61, 31))
self.pushButton_23.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_24 = QPushButton(self.frame_3)
self.pushButton_24.setObjectName(u"pushButton_24")
self.pushButton_24.setGeometry(QRect(300, 70, 61, 31))
self.pushButton_24.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_25 = QPushButton(self.frame_3)
self.pushButton_25.setObjectName(u"pushButton_25")
self.pushButton_25.setGeometry(QRect(370, 70, 61, 31))
self.pushButton_25.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.pushButton_26 = QPushButton(self.frame_3)
self.pushButton_26.setObjectName(u"pushButton_26")
self.pushButton_26.setGeometry(QRect(440, 70, 61, 31))
self.pushButton_26.setStyleSheet(u"background-color: #F9FAFC;\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"font: 10pt \"\u6977\u4f53\";")
self.frame_4 = QFrame(self.frame_3)
self.frame_4.setObjectName(u"frame_4")
self.frame_4.setGeometry(QRect(280, 160, 331, 251))
self.frame_4.setStyleSheet(u"background-color: rgb(85, 170, 255);")
self.frame_4.setFrameShape(QFrame.Shape.StyledPanel)
self.frame_4.setFrameShadow(QFrame.Shadow.Raised)
self.horizontalSlider_2 = QSlider(self.frame_4)
self.horizontalSlider_2.setObjectName(u"horizontalSlider_2")
self.horizontalSlider_2.setGeometry(QRect(40, 20, 221, 22))
self.horizontalSlider_2.setOrientation(Qt.Orientation.Horizontal)
self.label_8 = QLabel(self.frame_4)
self.label_8.setObjectName(u"label_8")
self.label_8.setGeometry(QRect(40, 0, 31, 21))
self.label_9 = QLabel(self.frame_4)
self.label_9.setObjectName(u"label_9")
self.label_9.setGeometry(QRect(240, 0, 21, 21))
self.textEdit = QTextEdit(self.frame_4)
self.textEdit.setObjectName(u"textEdit")
self.textEdit.setGeometry(QRect(270, 10, 51, 31))
self.textEdit.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.label_10 = QLabel(self.frame_4)
self.label_10.setObjectName(u"label_10")
self.label_10.setGeometry(QRect(40, 40, 53, 21))
self.label_11 = QLabel(self.frame_4)
self.label_11.setObjectName(u"label_11")
self.label_11.setGeometry(QRect(240, 40, 21, 21))
self.textEdit_2 = QTextEdit(self.frame_4)
self.textEdit_2.setObjectName(u"textEdit_2")
self.textEdit_2.setGeometry(QRect(270, 50, 51, 31))
self.textEdit_2.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.horizontalSlider_3 = QSlider(self.frame_4)
self.horizontalSlider_3.setObjectName(u"horizontalSlider_3")
self.horizontalSlider_3.setGeometry(QRect(40, 60, 221, 22))
self.horizontalSlider_3.setOrientation(Qt.Orientation.Horizontal)
self.label_12 = QLabel(self.frame_4)
self.label_12.setObjectName(u"label_12")
self.label_12.setGeometry(QRect(40, 80, 53, 21))
self.label_13 = QLabel(self.frame_4)
self.label_13.setObjectName(u"label_13")
self.label_13.setGeometry(QRect(240, 80, 21, 21))
self.textEdit_3 = QTextEdit(self.frame_4)
self.textEdit_3.setObjectName(u"textEdit_3")
self.textEdit_3.setGeometry(QRect(270, 90, 51, 31))
self.textEdit_3.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.horizontalSlider_4 = QSlider(self.frame_4)
self.horizontalSlider_4.setObjectName(u"horizontalSlider_4")
self.horizontalSlider_4.setGeometry(QRect(40, 100, 221, 22))
self.horizontalSlider_4.setOrientation(Qt.Orientation.Horizontal)
self.label_14 = QLabel(self.frame_4)
self.label_14.setObjectName(u"label_14")
self.label_14.setGeometry(QRect(40, 160, 53, 21))
self.horizontalSlider_5 = QSlider(self.frame_4)
self.horizontalSlider_5.setObjectName(u"horizontalSlider_5")
self.horizontalSlider_5.setGeometry(QRect(40, 180, 221, 22))
self.horizontalSlider_5.setOrientation(Qt.Orientation.Horizontal)
self.textEdit_4 = QTextEdit(self.frame_4)
self.textEdit_4.setObjectName(u"textEdit_4")
self.textEdit_4.setGeometry(QRect(270, 170, 51, 31))
self.textEdit_4.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.label_15 = QLabel(self.frame_4)
self.label_15.setObjectName(u"label_15")
self.label_15.setGeometry(QRect(240, 160, 21, 21))
self.label_16 = QLabel(self.frame_4)
self.label_16.setObjectName(u"label_16")
self.label_16.setGeometry(QRect(40, 200, 53, 21))
self.horizontalSlider_6 = QSlider(self.frame_4)
self.horizontalSlider_6.setObjectName(u"horizontalSlider_6")
self.horizontalSlider_6.setGeometry(QRect(40, 220, 221, 22))
self.horizontalSlider_6.setOrientation(Qt.Orientation.Horizontal)
self.textEdit_5 = QTextEdit(self.frame_4)
self.textEdit_5.setObjectName(u"textEdit_5")
self.textEdit_5.setGeometry(QRect(270, 210, 51, 31))
self.textEdit_5.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.label_17 = QLabel(self.frame_4)
self.label_17.setObjectName(u"label_17")
self.label_17.setGeometry(QRect(240, 200, 21, 21))
self.textEdit_6 = QTextEdit(self.frame_4)
self.textEdit_6.setObjectName(u"textEdit_6")
self.textEdit_6.setGeometry(QRect(270, 130, 51, 31))
self.textEdit_6.setStyleSheet(u"background-color: rgb(255, 255, 255);")
self.label_18 = QLabel(self.frame_4)
self.label_18.setObjectName(u"label_18")
self.label_18.setGeometry(QRect(40, 120, 53, 21))
self.horizontalSlider_7 = QSlider(self.frame_4)
self.horizontalSlider_7.setObjectName(u"horizontalSlider_7")
self.horizontalSlider_7.setGeometry(QRect(40, 140, 221, 22))
self.horizontalSlider_7.setOrientation(Qt.Orientation.Horizontal)
self.label_19 = QLabel(self.frame_4)
self.label_19.setObjectName(u"label_19")
self.label_19.setGeometry(QRect(240, 120, 21, 21))
self.label_20 = QLabel(self.frame_4)
self.label_20.setObjectName(u"label_20")
self.label_20.setGeometry(QRect(10, 20, 21, 21))
self.label_20.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_21 = QLabel(self.frame_4)
self.label_21.setObjectName(u"label_21")
self.label_21.setGeometry(QRect(10, 60, 21, 21))
self.label_21.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_22 = QLabel(self.frame_4)
self.label_22.setObjectName(u"label_22")
self.label_22.setGeometry(QRect(10, 100, 21, 21))
self.label_22.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_23 = QLabel(self.frame_4)
self.label_23.setObjectName(u"label_23")
self.label_23.setGeometry(QRect(10, 140, 21, 21))
self.label_23.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_24 = QLabel(self.frame_4)
self.label_24.setObjectName(u"label_24")
self.label_24.setGeometry(QRect(10, 180, 21, 21))
self.label_24.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_25 = QLabel(self.frame_4)
self.label_25.setObjectName(u"label_25")
self.label_25.setGeometry(QRect(10, 220, 21, 21))
self.label_25.setStyleSheet(u"font: 700 9pt \"Microsoft YaHei UI\";")
self.pushButton_16 = QPushButton(self.frame_2)
self.pushButton_16.setObjectName(u"pushButton_16")
self.pushButton_16.setGeometry(QRect(370, 510, 91, 31))
self.pushButton_16.setStyleSheet(u"background-color: rgb(255, 0, 0);\n"
"font: 9pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"")
icon1 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.SystemShutdown))
self.pushButton_16.setIcon(icon1)
self.pushButton_18 = QPushButton(self.frame_2)
self.pushButton_18.setObjectName(u"pushButton_18")
self.pushButton_18.setGeometry(QRect(570, 510, 91, 31))
self.pushButton_18.setStyleSheet(u"background-color: #1CB2B1;\n"
"font: 9pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"")
icon2 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.HelpFaq))
self.pushButton_18.setIcon(icon2)
self.pushButton_19 = QPushButton(self.frame_2)
self.pushButton_19.setObjectName(u"pushButton_19")
self.pushButton_19.setGeometry(QRect(470, 510, 91, 31))
self.pushButton_19.setStyleSheet(u"background-color: #1062B3;\n"
"font: 9pt \"\u6977\u4f53\";\n"
"border: 1px solid #dcdfe6;\n"
"border-radius: 10px;\n"
"")
icon3 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.InputMouse))
self.pushButton_19.setIcon(icon3)
self.label = QLabel(self.centralwidget)
self.label.setObjectName(u"label")
self.label.setGeometry(QRect(30, 583, 261, 31))
self.label.setStyleSheet(u"color:#fff;\n"
"font: 290 12pt \"Microsoft YaHei\";\n"
"font: 700 12pt \"Microsoft YaHei UI\";")
self.label.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.label_2 = QLabel(self.centralwidget)
self.label_2.setObjectName(u"label_2")
self.label_2.setGeometry(QRect(690, 580, 91, 16))
self.label_2.setStyleSheet(u"color:#fff;\n"
"font: 290 9pt \"Microsoft YaHei\";\n"
"font: 700 9pt \"Microsoft YaHei UI\";")
self.label_3 = QLabel(self.centralwidget)
self.label_3.setObjectName(u"label_3")
self.label_3.setGeometry(QRect(670, 600, 91, 16))
self.label_3.setStyleSheet(u"color:#5188BE;\n"
"font: 290 9pt \"Microsoft YaHei\";")
self.label_3.setAlignment(Qt.AlignmentFlag.AlignCenter)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u81ea\u52a8\u5316\u5bc6\u80fa\u751f\u4ea7", None))
self.pushButton_8.setText(QCoreApplication.translate("MainWindow", u"\u9875\u97621", None))
self.pushButton_13.setText(QCoreApplication.translate("MainWindow", u"\u6295 \u6599", None))
self.pushButton_3.setText(QCoreApplication.translate("MainWindow", u"\u81ea\u52a8\u6295\u6599", None))
self.pushButton_4.setText(QCoreApplication.translate("MainWindow", u"\u529f\u80fd\u754c\u97621", None))
self.pushButton_5.setText(QCoreApplication.translate("MainWindow", u"\u529f\u80fd\u754c\u97622", None))
self.pushButton_6.setText(QCoreApplication.translate("MainWindow", u"\u529f\u80fd\u754c\u97623", None))
self.pushButton_7.setText(QCoreApplication.translate("MainWindow", u"\u529f\u80fd\u754c\u97624", None))
self.label_4.setText("")
self.label_5.setText(QCoreApplication.translate("MainWindow", u"10", None))
self.pushButton_20.setText(QCoreApplication.translate("MainWindow", u"10", None))
self.pushButton_21.setText(QCoreApplication.translate("MainWindow", u"20", None))
self.pushButton_22.setText(QCoreApplication.translate("MainWindow", u"30", None))
self.pushButton_23.setText(QCoreApplication.translate("MainWindow", u"40", None))
self.pushButton_24.setText(QCoreApplication.translate("MainWindow", u"50", None))
self.pushButton_25.setText(QCoreApplication.translate("MainWindow", u"60", None))
self.pushButton_26.setText(QCoreApplication.translate("MainWindow", u"\u81ea\u5b9a\u4e49", None))
self.label_8.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_10.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_11.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_12.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_13.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_14.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_15.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_16.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_17.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_18.setText(QCoreApplication.translate("MainWindow", u"-150", None))
self.label_19.setText(QCoreApplication.translate("MainWindow", u"150", None))
self.label_20.setText(QCoreApplication.translate("MainWindow", u"J1", None))
self.label_21.setText(QCoreApplication.translate("MainWindow", u"J2", None))
self.label_22.setText(QCoreApplication.translate("MainWindow", u"J3", None))
self.label_23.setText(QCoreApplication.translate("MainWindow", u"J4", None))
self.label_24.setText(QCoreApplication.translate("MainWindow", u"J5", None))
self.label_25.setText(QCoreApplication.translate("MainWindow", u"J6", None))
self.pushButton_16.setText(QCoreApplication.translate("MainWindow", u"\u6025\u505c", None))
self.pushButton_18.setText(QCoreApplication.translate("MainWindow", u"\u6545\u969c\u8bca\u65ad", None))
self.pushButton_19.setText(QCoreApplication.translate("MainWindow", u"\u8c03\u8bd5", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"\u6e56\u5357\u957f\u6c99\u5927\u5c27\u4fe1\u606f\u79d1\u6280\u6709\u9650\u516c\u53f8", None))
self.label_2.setText(QCoreApplication.translate("MainWindow", u"08:00:00", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"2024-08-01", None))
# retranslateUi

961
untitled.ui Normal file
View File

@ -0,0 +1,961 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>837</width>
<height>627</height>
</rect>
</property>
<property name="windowTitle">
<string>自动化密胺生产</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(12, 78, 139);</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>121</width>
<height>551</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #E6ECF5;
border-radius: 10px;</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QPushButton" name="pushButton_8">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>页面1</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_13">
<property name="geometry">
<rect>
<x>120</x>
<y>310</y>
<width>71</width>
<height>41</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>投 料</string>
</property>
</widget>
</widget>
<widget class="QFrame" name="frame_2">
<property name="geometry">
<rect>
<x>140</x>
<y>20</y>
<width>681</width>
<height>551</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #E6ECF5;
border-radius: 10px;</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>40</x>
<y>20</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;</string>
</property>
<property name="text">
<string>自动投料</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::ListAdd"/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>170</x>
<y>20</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;</string>
</property>
<property name="text">
<string>功能界面1</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>300</x>
<y>20</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;</string>
</property>
<property name="text">
<string>功能界面2</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_6">
<property name="geometry">
<rect>
<x>430</x>
<y>20</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;</string>
</property>
<property name="text">
<string>功能界面3</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>560</x>
<y>20</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
font: 12pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;</string>
</property>
<property name="text">
<string>功能界面4</string>
</property>
</widget>
<widget class="QFrame" name="frame_3">
<property name="geometry">
<rect>
<x>40</x>
<y>60</y>
<width>621</width>
<height>441</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>251</width>
<height>381</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/Image/data/robot.png);
background-position:center;
background-repeat:no-repeat;</string>
</property>
<property name="text">
<string/>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider">
<property name="geometry">
<rect>
<x>310</x>
<y>110</y>
<width>231</width>
<height>41</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>550</x>
<y>120</y>
<width>31</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 9pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>10</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_20">
<property name="geometry">
<rect>
<x>300</x>
<y>30</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>10</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_21">
<property name="geometry">
<rect>
<x>370</x>
<y>30</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>20</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_22">
<property name="geometry">
<rect>
<x>440</x>
<y>30</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>30</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_23">
<property name="geometry">
<rect>
<x>510</x>
<y>30</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>40</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_24">
<property name="geometry">
<rect>
<x>300</x>
<y>70</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>50</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_25">
<property name="geometry">
<rect>
<x>370</x>
<y>70</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>60</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_26">
<property name="geometry">
<rect>
<x>440</x>
<y>70</y>
<width>61</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #F9FAFC;
border: 1px solid #dcdfe6;
border-radius: 10px;
font: 10pt &quot;楷体&quot;;</string>
</property>
<property name="text">
<string>自定义</string>
</property>
</widget>
<widget class="QFrame" name="frame_4">
<property name="geometry">
<rect>
<x>280</x>
<y>160</y>
<width>331</width>
<height>251</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(85, 170, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QSlider" name="horizontalSlider_2">
<property name="geometry">
<rect>
<x>40</x>
<y>20</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>40</x>
<y>0</y>
<width>31</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>240</x>
<y>0</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>270</x>
<y>10</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>40</x>
<y>40</y>
<width>53</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>240</x>
<y>40</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_2">
<property name="geometry">
<rect>
<x>270</x>
<y>50</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_3">
<property name="geometry">
<rect>
<x>40</x>
<y>60</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>40</x>
<y>80</y>
<width>53</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>240</x>
<y>80</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_3">
<property name="geometry">
<rect>
<x>270</x>
<y>90</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_4">
<property name="geometry">
<rect>
<x>40</x>
<y>100</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>40</x>
<y>160</y>
<width>53</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_5">
<property name="geometry">
<rect>
<x>40</x>
<y>180</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_4">
<property name="geometry">
<rect>
<x>270</x>
<y>170</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QLabel" name="label_15">
<property name="geometry">
<rect>
<x>240</x>
<y>160</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QLabel" name="label_16">
<property name="geometry">
<rect>
<x>40</x>
<y>200</y>
<width>53</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_6">
<property name="geometry">
<rect>
<x>40</x>
<y>220</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_5">
<property name="geometry">
<rect>
<x>270</x>
<y>210</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QLabel" name="label_17">
<property name="geometry">
<rect>
<x>240</x>
<y>200</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_6">
<property name="geometry">
<rect>
<x>270</x>
<y>130</y>
<width>51</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
</widget>
<widget class="QLabel" name="label_18">
<property name="geometry">
<rect>
<x>40</x>
<y>120</y>
<width>53</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>-150</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_7">
<property name="geometry">
<rect>
<x>40</x>
<y>140</y>
<width>221</width>
<height>22</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_19">
<property name="geometry">
<rect>
<x>240</x>
<y>120</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>150</string>
</property>
</widget>
<widget class="QLabel" name="label_20">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J1</string>
</property>
</widget>
<widget class="QLabel" name="label_21">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J2</string>
</property>
</widget>
<widget class="QLabel" name="label_22">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J3</string>
</property>
</widget>
<widget class="QLabel" name="label_23">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J4</string>
</property>
</widget>
<widget class="QLabel" name="label_24">
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J5</string>
</property>
</widget>
<widget class="QLabel" name="label_25">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>J6</string>
</property>
</widget>
</widget>
</widget>
<widget class="QPushButton" name="pushButton_16">
<property name="geometry">
<rect>
<x>370</x>
<y>510</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 0, 0);
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;
</string>
</property>
<property name="text">
<string>急停</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::SystemShutdown"/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_18">
<property name="geometry">
<rect>
<x>570</x>
<y>510</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #1CB2B1;
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;
</string>
</property>
<property name="text">
<string>故障诊断</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::HelpFaq"/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_19">
<property name="geometry">
<rect>
<x>470</x>
<y>510</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #1062B3;
font: 9pt &quot;楷体&quot;;
border: 1px solid #dcdfe6;
border-radius: 10px;
</string>
</property>
<property name="text">
<string>调试</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::InputMouse"/>
</property>
</widget>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>30</x>
<y>583</y>
<width>261</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color:#fff;
font: 290 12pt &quot;Microsoft YaHei&quot;;
font: 700 12pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>湖南长沙大尧信息科技有限公司</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>690</x>
<y>580</y>
<width>91</width>
<height>16</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color:#fff;
font: 290 9pt &quot;Microsoft YaHei&quot;;
font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<property name="text">
<string>08:00:00</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>670</x>
<y>600</y>
<width>91</width>
<height>16</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color:#5188BE;
font: 290 9pt &quot;Microsoft YaHei&quot;;</string>
</property>
<property name="text">
<string>2024-08-01</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</widget>
</widget>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>