update 日志模块初见

This commit is contained in:
FrankCV2048
2024-09-08 22:27:26 +08:00
parent ab2545895b
commit 55227fc898
6 changed files with 162 additions and 53 deletions

View File

@ -84,7 +84,7 @@ class Ui_MainWindow(object):
self.frame_6.setFrameShadow(QFrame.Shadow.Raised)
self.label_5 = QLabel(self.frame_6)
self.label_5.setObjectName(u"label_5")
self.label_5.setGeometry(QRect(10, 10, 481, 261))
self.label_5.setGeometry(QRect(10, 10, 481, 201))
self.label_5.setStyleSheet(u"\n"
"background-image: url(:/bg/Image/robot.png);\n"
"background-position:center;\n"
@ -493,13 +493,6 @@ class Ui_MainWindow(object):
self.label_manual_adjust_accuracy = QLabel(self.frame_7)
self.label_manual_adjust_accuracy.setObjectName(u"label_manual_adjust_accuracy")
self.label_manual_adjust_accuracy.setGeometry(QRect(50, 13, 53, 15))
self.textEdit_log = QTextEdit(self.frame_6)
self.textEdit_log.setObjectName(u"textEdit_log")
self.textEdit_log.setGeometry(QRect(10, 280, 481, 191))
self.textEdit_log.setStyleSheet(u"*{\n"
" background-image: url(:/bg/Image/robot.png);\n"
" background-color: #E6ECF5;\n"
"}")
self.comboBox_lineIndex = QComboBox(self.frame_6)
self.comboBox_lineIndex.addItem("")
self.comboBox_lineIndex.addItem("")
@ -805,6 +798,30 @@ class Ui_MainWindow(object):
" background-color: red;\n"
" color: white;\n"
" }")
self.tabWidget_2 = QTabWidget(self.frame_6)
self.tabWidget_2.setObjectName(u"tabWidget_2")
self.tabWidget_2.setGeometry(QRect(10, 220, 491, 251))
self.tab_3 = QWidget()
self.tab_3.setObjectName(u"tab_3")
self.textEdit_log_info = QTextEdit(self.tab_3)
self.textEdit_log_info.setObjectName(u"textEdit_log_info")
self.textEdit_log_info.setGeometry(QRect(0, 0, 491, 231))
self.textEdit_log_info.setStyleSheet(u"*{\n"
" background-color: #D3D3D3;\n"
"}")
self.tabWidget_2.addTab(self.tab_3, "")
self.tab_4 = QWidget()
self.tab_4.setObjectName(u"tab_4")
self.textEdit_log_error = QTextEdit(self.tab_4)
self.textEdit_log_error.setObjectName(u"textEdit_log_error")
self.textEdit_log_error.setGeometry(QRect(0, 0, 491, 231))
self.textEdit_log_error.setStyleSheet(u"*{\n"
" color: red;\n"
"\n"
" background-color: #D3D3D3;\n"
"}\n"
"")
self.tabWidget_2.addTab(self.tab_4, "")
self.stackedWidget_feed.addWidget(self.page_6)
self.page_7 = QWidget()
self.page_7.setObjectName(u"page_7")
@ -912,8 +929,9 @@ class Ui_MainWindow(object):
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
self.stackedWidget_feed.setCurrentIndex(1)
self.stackedWidget_feed.setCurrentIndex(0)
self.stackedWidget_num.setCurrentIndex(0)
self.tabWidget_2.setCurrentIndex(0)
QMetaObject.connectSlotsByName(MainWindow)
@ -966,15 +984,6 @@ class Ui_MainWindow(object):
self.lineEdit_manual_adjust_accuracy.setText(QCoreApplication.translate("MainWindow", u"1", None))
self.lineEdit_manual_adjust_accuracy.setPlaceholderText(QCoreApplication.translate("MainWindow", u"0.001-20", None))
self.label_manual_adjust_accuracy.setText(QCoreApplication.translate("MainWindow", u"\u8c03\u6574\u95f4\u9694\uff1a", None))
self.textEdit_log.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">2024-08-06 10:10:10\uff1a\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u3002\u3002\u3002</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">2024-08-06 11:10:10\uff1a\u79fb\u52a8\u673a\u68b0\u81c2\u81f3\u6240\u793a\u4f4d\u7f6e</p></body></html>", None))
self.comboBox_lineIndex.setItemText(0, QCoreApplication.translate("MainWindow", u"1\u53f7\u7ebf", None))
self.comboBox_lineIndex.setItemText(1, QCoreApplication.translate("MainWindow", u"\u65b0\u5efa\u7ebf", None))
@ -999,6 +1008,24 @@ class Ui_MainWindow(object):
self.lineEdit_speed.setPlaceholderText(QCoreApplication.translate("MainWindow", u"\u8f93\u5165\u6574\u6570\uff0c\u5207\u52ff\u8d85\u901f", None))
self.label_2.setText(QCoreApplication.translate("MainWindow", u"\u5f53\u524d\u81ea\u52a8\u901f\u5ea6\uff1a", None))
self.pushButton_speed.setText(QCoreApplication.translate("MainWindow", u"PushButton", None))
self.textEdit_log_info.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3), QCoreApplication.translate("MainWindow", u"\u65e5\u5fd7", None))
self.textEdit_log_error.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4), QCoreApplication.translate("MainWindow", u"\u62a5\u8b66", None))
self.pushButton_tableFeedSet_addRow.setText(QCoreApplication.translate("MainWindow", u"\u65b0\u589e\u7ebf", None))
self.pushButton_tableFeedSet_deleRow.setText(QCoreApplication.translate("MainWindow", u"\u5220\u9664\u7ebf", None))
self.pushButton_tableFeedSet_save.setText(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58", None))