2024-07-03 12:01:11 +08:00
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'PyUartUi.ui'
|
|
|
|
|
#
|
|
|
|
|
# Created by: PyQt5 UI code generator 5.15.10
|
|
|
|
|
#
|
|
|
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
|
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Ui_UartAssistant(object):
|
|
|
|
|
def setupUi(self, UartAssistant):
|
|
|
|
|
UartAssistant.setObjectName("UartAssistant")
|
|
|
|
|
UartAssistant.resize(1121, 714)
|
|
|
|
|
self.groupBox = QtWidgets.QGroupBox(UartAssistant)
|
|
|
|
|
self.groupBox.setGeometry(QtCore.QRect(30, 20, 241, 281))
|
|
|
|
|
self.groupBox.setObjectName("groupBox")
|
|
|
|
|
self.pushButtonTestSerial = QtWidgets.QPushButton(self.groupBox)
|
|
|
|
|
self.pushButtonTestSerial.setGeometry(QtCore.QRect(10, 210, 93, 28))
|
|
|
|
|
self.pushButtonTestSerial.setObjectName("pushButtonTestSerial")
|
|
|
|
|
self.pushButtonOpenSerial = QtWidgets.QPushButton(self.groupBox)
|
|
|
|
|
self.pushButtonOpenSerial.setGeometry(QtCore.QRect(120, 210, 93, 28))
|
|
|
|
|
self.pushButtonOpenSerial.setStyleSheet("background-color: rgb(0, 255, 0);")
|
|
|
|
|
self.pushButtonOpenSerial.setObjectName("pushButtonOpenSerial")
|
|
|
|
|
self.pushButtonCloseSerial = QtWidgets.QPushButton(self.groupBox)
|
|
|
|
|
self.pushButtonCloseSerial.setGeometry(QtCore.QRect(10, 240, 201, 28))
|
|
|
|
|
self.pushButtonCloseSerial.setObjectName("pushButtonCloseSerial")
|
|
|
|
|
self.layoutWidget = QtWidgets.QWidget(self.groupBox)
|
|
|
|
|
self.layoutWidget.setGeometry(QtCore.QRect(10, 30, 74, 171))
|
|
|
|
|
self.layoutWidget.setObjectName("layoutWidget")
|
|
|
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
|
|
|
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
|
|
|
self.label = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label.setObjectName("label")
|
|
|
|
|
self.verticalLayout.addWidget(self.label)
|
|
|
|
|
self.label_2 = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label_2.setObjectName("label_2")
|
|
|
|
|
self.verticalLayout.addWidget(self.label_2)
|
|
|
|
|
self.label_3 = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label_3.setObjectName("label_3")
|
|
|
|
|
self.verticalLayout.addWidget(self.label_3)
|
|
|
|
|
self.label_4 = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label_4.setObjectName("label_4")
|
|
|
|
|
self.verticalLayout.addWidget(self.label_4)
|
|
|
|
|
self.label_5 = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label_5.setObjectName("label_5")
|
|
|
|
|
self.verticalLayout.addWidget(self.label_5)
|
|
|
|
|
self.label_6 = QtWidgets.QLabel(self.layoutWidget)
|
|
|
|
|
self.label_6.setObjectName("label_6")
|
|
|
|
|
self.verticalLayout.addWidget(self.label_6)
|
|
|
|
|
self.layoutWidget1 = QtWidgets.QWidget(self.groupBox)
|
|
|
|
|
self.layoutWidget1.setGeometry(QtCore.QRect(80, 30, 128, 171))
|
|
|
|
|
self.layoutWidget1.setObjectName("layoutWidget1")
|
|
|
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
|
|
|
|
|
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
|
|
|
self.comboBoxSerial = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxSerial.setObjectName("comboBoxSerial")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxSerial)
|
|
|
|
|
self.comboBoxBaudrate = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxBaudrate.setToolTipDuration(0)
|
|
|
|
|
self.comboBoxBaudrate.setEditable(True)
|
|
|
|
|
self.comboBoxBaudrate.setObjectName("comboBoxBaudrate")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.comboBoxBaudrate.addItem("")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxBaudrate)
|
|
|
|
|
self.comboBoxDataBits = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxDataBits.setEditable(True)
|
|
|
|
|
self.comboBoxDataBits.setObjectName("comboBoxDataBits")
|
|
|
|
|
self.comboBoxDataBits.addItem("")
|
|
|
|
|
self.comboBoxDataBits.addItem("")
|
|
|
|
|
self.comboBoxDataBits.addItem("")
|
|
|
|
|
self.comboBoxDataBits.addItem("")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxDataBits)
|
|
|
|
|
self.comboBoxCheckBit = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxCheckBit.setEditable(True)
|
|
|
|
|
self.comboBoxCheckBit.setObjectName("comboBoxCheckBit")
|
|
|
|
|
self.comboBoxCheckBit.addItem("")
|
|
|
|
|
self.comboBoxCheckBit.addItem("")
|
|
|
|
|
self.comboBoxCheckBit.addItem("")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxCheckBit)
|
|
|
|
|
self.comboBoxStopBit = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxStopBit.setEditable(True)
|
|
|
|
|
self.comboBoxStopBit.setObjectName("comboBoxStopBit")
|
|
|
|
|
self.comboBoxStopBit.addItem("")
|
|
|
|
|
self.comboBoxStopBit.addItem("")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxStopBit)
|
|
|
|
|
self.comboBoxFlow = QtWidgets.QComboBox(self.layoutWidget1)
|
|
|
|
|
self.comboBoxFlow.setEditable(True)
|
|
|
|
|
self.comboBoxFlow.setObjectName("comboBoxFlow")
|
|
|
|
|
self.comboBoxFlow.addItem("")
|
|
|
|
|
self.comboBoxFlow.addItem("")
|
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBoxFlow)
|
|
|
|
|
self.groupBox_2 = QtWidgets.QGroupBox(UartAssistant)
|
|
|
|
|
self.groupBox_2.setGeometry(QtCore.QRect(30, 310, 241, 171))
|
|
|
|
|
self.groupBox_2.setObjectName("groupBox_2")
|
|
|
|
|
self.layoutWidget2 = QtWidgets.QWidget(self.groupBox_2)
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.layoutWidget2.setGeometry(QtCore.QRect(10, 20, 197, 79))
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.layoutWidget2.setObjectName("layoutWidget2")
|
|
|
|
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget2)
|
|
|
|
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
|
|
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
|
|
|
self.checkBoxHexSend = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxHexSend.setObjectName("checkBoxHexSend")
|
|
|
|
|
self.horizontalLayout.addWidget(self.checkBoxHexSend)
|
|
|
|
|
self.checkBoxHexReceive = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxHexReceive.setObjectName("checkBoxHexReceive")
|
|
|
|
|
self.horizontalLayout.addWidget(self.checkBoxHexReceive)
|
|
|
|
|
self.verticalLayout_3.addLayout(self.horizontalLayout)
|
|
|
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
|
|
|
self.checkBoxDTR = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxDTR.setObjectName("checkBoxDTR")
|
|
|
|
|
self.horizontalLayout_2.addWidget(self.checkBoxDTR)
|
|
|
|
|
self.checkBoxRTS = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxRTS.setObjectName("checkBoxRTS")
|
|
|
|
|
self.horizontalLayout_2.addWidget(self.checkBoxRTS)
|
|
|
|
|
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
|
|
|
|
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
|
|
|
self.checkBoxAddDate = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxAddDate.setObjectName("checkBoxAddDate")
|
|
|
|
|
self.horizontalLayout_3.addWidget(self.checkBoxAddDate)
|
|
|
|
|
self.checkBoxCRLF = QtWidgets.QCheckBox(self.layoutWidget2)
|
|
|
|
|
self.checkBoxCRLF.setObjectName("checkBoxCRLF")
|
|
|
|
|
self.horizontalLayout_3.addWidget(self.checkBoxCRLF)
|
|
|
|
|
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
|
|
|
|
|
self.layoutWidget3 = QtWidgets.QWidget(self.groupBox_2)
|
|
|
|
|
self.layoutWidget3.setGeometry(QtCore.QRect(10, 130, 195, 30))
|
|
|
|
|
self.layoutWidget3.setObjectName("layoutWidget3")
|
|
|
|
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget3)
|
|
|
|
|
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
|
|
|
|
self.pushButtonLogSave = QtWidgets.QPushButton(self.layoutWidget3)
|
|
|
|
|
self.pushButtonLogSave.setObjectName("pushButtonLogSave")
|
|
|
|
|
self.horizontalLayout_4.addWidget(self.pushButtonLogSave)
|
|
|
|
|
self.pushButtonLogLoad = QtWidgets.QPushButton(self.layoutWidget3)
|
|
|
|
|
self.pushButtonLogLoad.setObjectName("pushButtonLogLoad")
|
|
|
|
|
self.horizontalLayout_4.addWidget(self.pushButtonLogLoad)
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.checkBoxAutoSaveLog = QtWidgets.QCheckBox(self.groupBox_2)
|
|
|
|
|
self.checkBoxAutoSaveLog.setGeometry(QtCore.QRect(12, 103, 90, 16))
|
|
|
|
|
self.checkBoxAutoSaveLog.setChecked(True)
|
|
|
|
|
self.checkBoxAutoSaveLog.setObjectName("checkBoxAutoSaveLog")
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.groupBox_3 = QtWidgets.QGroupBox(UartAssistant)
|
|
|
|
|
self.groupBox_3.setGeometry(QtCore.QRect(30, 480, 241, 71))
|
|
|
|
|
self.groupBox_3.setObjectName("groupBox_3")
|
|
|
|
|
self.checkBoxReapitSend = QtWidgets.QCheckBox(self.groupBox_3)
|
|
|
|
|
self.checkBoxReapitSend.setGeometry(QtCore.QRect(10, 30, 91, 19))
|
|
|
|
|
self.checkBoxReapitSend.setObjectName("checkBoxReapitSend")
|
|
|
|
|
self.label_7 = QtWidgets.QLabel(self.groupBox_3)
|
|
|
|
|
self.label_7.setGeometry(QtCore.QRect(170, 30, 51, 16))
|
|
|
|
|
self.label_7.setObjectName("label_7")
|
|
|
|
|
self.lineEditTime = QtWidgets.QLineEdit(self.groupBox_3)
|
|
|
|
|
self.lineEditTime.setGeometry(QtCore.QRect(110, 30, 51, 21))
|
|
|
|
|
self.lineEditTime.setObjectName("lineEditTime")
|
|
|
|
|
self.lineEditSendNum = QtWidgets.QLineEdit(UartAssistant)
|
|
|
|
|
self.lineEditSendNum.setGeometry(QtCore.QRect(50, 580, 61, 21))
|
|
|
|
|
self.lineEditSendNum.setObjectName("lineEditSendNum")
|
|
|
|
|
self.label_SendNum = QtWidgets.QLabel(UartAssistant)
|
|
|
|
|
self.label_SendNum.setGeometry(QtCore.QRect(30, 580, 72, 15))
|
|
|
|
|
self.label_SendNum.setObjectName("label_SendNum")
|
|
|
|
|
self.label_9 = QtWidgets.QLabel(UartAssistant)
|
|
|
|
|
self.label_9.setGeometry(QtCore.QRect(130, 580, 72, 15))
|
|
|
|
|
self.label_9.setObjectName("label_9")
|
|
|
|
|
self.lineEditReceiveNum = QtWidgets.QLineEdit(UartAssistant)
|
|
|
|
|
self.lineEditReceiveNum.setGeometry(QtCore.QRect(150, 580, 61, 21))
|
|
|
|
|
self.lineEditReceiveNum.setObjectName("lineEditReceiveNum")
|
|
|
|
|
self.label_10 = QtWidgets.QLabel(UartAssistant)
|
|
|
|
|
self.label_10.setGeometry(QtCore.QRect(40, 650, 131, 16))
|
|
|
|
|
self.label_10.setObjectName("label_10")
|
|
|
|
|
self.tabWidget = QtWidgets.QTabWidget(UartAssistant)
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.tabWidget.setGeometry(QtCore.QRect(280, 10, 841, 701))
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.tabWidget.setMouseTracking(False)
|
|
|
|
|
self.tabWidget.setObjectName("tabWidget")
|
|
|
|
|
self.tab = QtWidgets.QWidget()
|
|
|
|
|
self.tab.setObjectName("tab")
|
|
|
|
|
self.groupBox_4 = QtWidgets.QGroupBox(self.tab)
|
|
|
|
|
self.groupBox_4.setGeometry(QtCore.QRect(10, 0, 811, 681))
|
|
|
|
|
self.groupBox_4.setObjectName("groupBox_4")
|
|
|
|
|
self.textEditReceive = QtWidgets.QTextEdit(self.groupBox_4)
|
|
|
|
|
self.textEditReceive.setGeometry(QtCore.QRect(40, 30, 741, 471))
|
|
|
|
|
self.textEditReceive.setObjectName("textEditReceive")
|
|
|
|
|
self.groupBox_5 = QtWidgets.QGroupBox(self.groupBox_4)
|
|
|
|
|
self.groupBox_5.setGeometry(QtCore.QRect(20, 510, 771, 151))
|
|
|
|
|
self.groupBox_5.setObjectName("groupBox_5")
|
|
|
|
|
self.textEditSend = QtWidgets.QTextEdit(self.groupBox_5)
|
|
|
|
|
self.textEditSend.setGeometry(QtCore.QRect(20, 20, 621, 111))
|
|
|
|
|
self.textEditSend.setObjectName("textEditSend")
|
|
|
|
|
self.pushButtonSend = QtWidgets.QPushButton(self.groupBox_5)
|
|
|
|
|
self.pushButtonSend.setGeometry(QtCore.QRect(660, 80, 93, 51))
|
|
|
|
|
font = QtGui.QFont()
|
|
|
|
|
font.setFamily("3ds")
|
|
|
|
|
font.setPointSize(12)
|
|
|
|
|
self.pushButtonSend.setFont(font)
|
|
|
|
|
self.pushButtonSend.setAutoFillBackground(False)
|
|
|
|
|
self.pushButtonSend.setStyleSheet("background-color: rgb(0, 255, 0);")
|
|
|
|
|
self.pushButtonSend.setCheckable(False)
|
|
|
|
|
self.pushButtonSend.setFlat(False)
|
|
|
|
|
self.pushButtonSend.setObjectName("pushButtonSend")
|
|
|
|
|
self.pushButtonClearReceive = QtWidgets.QPushButton(self.groupBox_5)
|
|
|
|
|
self.pushButtonClearReceive.setGeometry(QtCore.QRect(660, 20, 91, 23))
|
|
|
|
|
self.pushButtonClearReceive.setObjectName("pushButtonClearReceive")
|
|
|
|
|
self.pushButtonClearSend = QtWidgets.QPushButton(self.groupBox_5)
|
|
|
|
|
self.pushButtonClearSend.setGeometry(QtCore.QRect(660, 50, 91, 23))
|
|
|
|
|
self.pushButtonClearSend.setObjectName("pushButtonClearSend")
|
|
|
|
|
self.tabWidget.addTab(self.tab, "")
|
|
|
|
|
self.tab_2 = QtWidgets.QWidget()
|
|
|
|
|
self.tab_2.setObjectName("tab_2")
|
|
|
|
|
self.plot_view = QChartView(self.tab_2)
|
|
|
|
|
self.plot_view.setEnabled(True)
|
|
|
|
|
self.plot_view.setGeometry(QtCore.QRect(60, 90, 741, 521))
|
|
|
|
|
self.plot_view.setAcceptDrops(False)
|
|
|
|
|
self.plot_view.setToolTipDuration(-1)
|
|
|
|
|
self.plot_view.setObjectName("plot_view")
|
|
|
|
|
self.radioButtonCH4QX = QtWidgets.QRadioButton(self.tab_2)
|
|
|
|
|
self.radioButtonCH4QX.setEnabled(True)
|
|
|
|
|
self.radioButtonCH4QX.setGeometry(QtCore.QRect(190, 10, 61, 16))
|
|
|
|
|
self.radioButtonCH4QX.setMouseTracking(True)
|
|
|
|
|
self.radioButtonCH4QX.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
|
|
|
|
|
self.radioButtonCH4QX.setAcceptDrops(True)
|
|
|
|
|
self.radioButtonCH4QX.setToolTipDuration(1)
|
|
|
|
|
self.radioButtonCH4QX.setStatusTip("")
|
|
|
|
|
self.radioButtonCH4QX.setAutoFillBackground(False)
|
|
|
|
|
self.radioButtonCH4QX.setChecked(True)
|
|
|
|
|
self.radioButtonCH4QX.setObjectName("radioButtonCH4QX")
|
|
|
|
|
self.radioButtonCH4TF = QtWidgets.QRadioButton(self.tab_2)
|
|
|
|
|
self.radioButtonCH4TF.setGeometry(QtCore.QRect(250, 10, 51, 16))
|
|
|
|
|
self.radioButtonCH4TF.setObjectName("radioButtonCH4TF")
|
|
|
|
|
self.pushButtonStartPlot = QtWidgets.QPushButton(self.tab_2)
|
|
|
|
|
self.pushButtonStartPlot.setGeometry(QtCore.QRect(60, 10, 75, 23))
|
|
|
|
|
self.pushButtonStartPlot.setObjectName("pushButtonStartPlot")
|
|
|
|
|
self.pushButtonStopPlot = QtWidgets.QPushButton(self.tab_2)
|
|
|
|
|
self.pushButtonStopPlot.setGeometry(QtCore.QRect(60, 40, 75, 23))
|
|
|
|
|
self.pushButtonStopPlot.setObjectName("pushButtonStopPlot")
|
|
|
|
|
self.comboBoxPlot = QtWidgets.QComboBox(self.tab_2)
|
|
|
|
|
self.comboBoxPlot.setGeometry(QtCore.QRect(180, 40, 191, 22))
|
|
|
|
|
self.comboBoxPlot.setObjectName("comboBoxPlot")
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.checkBoxAutoSaveCsv = QtWidgets.QCheckBox(self.tab_2)
|
|
|
|
|
self.checkBoxAutoSaveCsv.setGeometry(QtCore.QRect(400, 10, 121, 16))
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.checkBoxAutoSaveCsv.setChecked(True)
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.checkBoxAutoSaveCsv.setObjectName("checkBoxAutoSaveCsv")
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.layoutWidget4 = QtWidgets.QWidget(self.tab_2)
|
|
|
|
|
self.layoutWidget4.setGeometry(QtCore.QRect(390, 630, 411, 24))
|
|
|
|
|
self.layoutWidget4.setObjectName("layoutWidget4")
|
|
|
|
|
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
|
|
|
|
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.label_SendNum_2 = QtWidgets.QLabel(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.label_SendNum_2.setObjectName("label_SendNum_2")
|
|
|
|
|
self.horizontalLayout_5.addWidget(self.label_SendNum_2)
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.lineEditCurrentValue = QtWidgets.QLineEdit(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.lineEditCurrentValue.setObjectName("lineEditCurrentValue")
|
|
|
|
|
self.horizontalLayout_5.addWidget(self.lineEditCurrentValue)
|
|
|
|
|
self.horizontalLayout_8.addLayout(self.horizontalLayout_5)
|
|
|
|
|
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.label_SendNum_3 = QtWidgets.QLabel(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.label_SendNum_3.setObjectName("label_SendNum_3")
|
|
|
|
|
self.horizontalLayout_6.addWidget(self.label_SendNum_3)
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.lineEditWindowMean = QtWidgets.QLineEdit(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.lineEditWindowMean.setObjectName("lineEditWindowMean")
|
|
|
|
|
self.horizontalLayout_6.addWidget(self.lineEditWindowMean)
|
|
|
|
|
self.horizontalLayout_8.addLayout(self.horizontalLayout_6)
|
|
|
|
|
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
|
|
|
|
|
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.label_SendNum_4 = QtWidgets.QLabel(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.label_SendNum_4.setObjectName("label_SendNum_4")
|
|
|
|
|
self.horizontalLayout_7.addWidget(self.label_SendNum_4)
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.lineEditWindowMSE = QtWidgets.QLineEdit(self.layoutWidget4)
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.lineEditWindowMSE.setObjectName("lineEditWindowMSE")
|
|
|
|
|
self.horizontalLayout_7.addWidget(self.lineEditWindowMSE)
|
|
|
|
|
self.horizontalLayout_8.addLayout(self.horizontalLayout_7)
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.pushButtonResetPlot = QtWidgets.QPushButton(self.tab_2)
|
|
|
|
|
self.pushButtonResetPlot.setGeometry(QtCore.QRect(70, 620, 61, 23))
|
|
|
|
|
self.pushButtonResetPlot.setObjectName("pushButtonResetPlot")
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.tabWidget.addTab(self.tab_2, "")
|
|
|
|
|
self.tabWidget.raise_()
|
|
|
|
|
self.groupBox.raise_()
|
|
|
|
|
self.groupBox_2.raise_()
|
|
|
|
|
self.groupBox_3.raise_()
|
|
|
|
|
self.lineEditSendNum.raise_()
|
|
|
|
|
self.label_SendNum.raise_()
|
|
|
|
|
self.label_9.raise_()
|
|
|
|
|
self.lineEditReceiveNum.raise_()
|
|
|
|
|
self.label_10.raise_()
|
|
|
|
|
|
|
|
|
|
self.retranslateUi(UartAssistant)
|
|
|
|
|
self.comboBoxBaudrate.setCurrentIndex(0)
|
|
|
|
|
self.comboBoxDataBits.setCurrentIndex(3)
|
|
|
|
|
self.comboBoxCheckBit.setCurrentIndex(0)
|
2024-07-04 13:31:26 +08:00
|
|
|
|
self.tabWidget.setCurrentIndex(0)
|
2024-07-03 12:01:11 +08:00
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(UartAssistant)
|
|
|
|
|
|
|
|
|
|
def retranslateUi(self, UartAssistant):
|
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
|
|
|
|
UartAssistant.setWindowTitle(_translate("UartAssistant", "串口助手py版"))
|
|
|
|
|
self.groupBox.setTitle(_translate("UartAssistant", "串口设置"))
|
|
|
|
|
self.pushButtonTestSerial.setText(_translate("UartAssistant", "检测串口"))
|
|
|
|
|
self.pushButtonOpenSerial.setText(_translate("UartAssistant", "打开串口"))
|
|
|
|
|
self.pushButtonCloseSerial.setText(_translate("UartAssistant", "关闭串口"))
|
|
|
|
|
self.label.setText(_translate("UartAssistant", "串口号"))
|
|
|
|
|
self.label_2.setText(_translate("UartAssistant", "波特率"))
|
|
|
|
|
self.label_3.setText(_translate("UartAssistant", "数据位"))
|
|
|
|
|
self.label_4.setText(_translate("UartAssistant", "校验位"))
|
|
|
|
|
self.label_5.setText(_translate("UartAssistant", "停止位"))
|
|
|
|
|
self.label_6.setText(_translate("UartAssistant", "流控方式"))
|
|
|
|
|
self.comboBoxBaudrate.setCurrentText(_translate("UartAssistant", "4800"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(0, _translate("UartAssistant", "4800"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(1, _translate("UartAssistant", "9600"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(2, _translate("UartAssistant", "14400"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(3, _translate("UartAssistant", "19200"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(4, _translate("UartAssistant", "115200"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(5, _translate("UartAssistant", "921600"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(6, _translate("UartAssistant", "1500000"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(7, _translate("UartAssistant", "新建项目"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(8, _translate("UartAssistant", "新建项目"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(9, _translate("UartAssistant", "新建项目"))
|
|
|
|
|
self.comboBoxBaudrate.setItemText(10, _translate("UartAssistant", "自定义"))
|
|
|
|
|
self.comboBoxDataBits.setCurrentText(_translate("UartAssistant", "8"))
|
|
|
|
|
self.comboBoxDataBits.setItemText(0, _translate("UartAssistant", "5"))
|
|
|
|
|
self.comboBoxDataBits.setItemText(1, _translate("UartAssistant", "6"))
|
|
|
|
|
self.comboBoxDataBits.setItemText(2, _translate("UartAssistant", "7"))
|
|
|
|
|
self.comboBoxDataBits.setItemText(3, _translate("UartAssistant", "8"))
|
|
|
|
|
self.comboBoxCheckBit.setItemText(0, _translate("UartAssistant", "None"))
|
|
|
|
|
self.comboBoxCheckBit.setItemText(1, _translate("UartAssistant", "Odd"))
|
|
|
|
|
self.comboBoxCheckBit.setItemText(2, _translate("UartAssistant", "Even"))
|
|
|
|
|
self.comboBoxStopBit.setItemText(0, _translate("UartAssistant", "1"))
|
|
|
|
|
self.comboBoxStopBit.setItemText(1, _translate("UartAssistant", "2"))
|
|
|
|
|
self.comboBoxFlow.setItemText(0, _translate("UartAssistant", "No Ctrl Flow"))
|
|
|
|
|
self.comboBoxFlow.setItemText(1, _translate("UartAssistant", "SW Ctrl Flow"))
|
|
|
|
|
self.groupBox_2.setTitle(_translate("UartAssistant", "收发设置"))
|
|
|
|
|
self.checkBoxHexSend.setText(_translate("UartAssistant", "HEX发送"))
|
|
|
|
|
self.checkBoxHexReceive.setText(_translate("UartAssistant", "HEX接收"))
|
|
|
|
|
self.checkBoxDTR.setText(_translate("UartAssistant", "DTR"))
|
|
|
|
|
self.checkBoxRTS.setText(_translate("UartAssistant", "RTS"))
|
|
|
|
|
self.checkBoxAddDate.setText(_translate("UartAssistant", "收/发时间"))
|
|
|
|
|
self.checkBoxCRLF.setText(_translate("UartAssistant", "收发换行"))
|
|
|
|
|
self.pushButtonLogSave.setText(_translate("UartAssistant", "保存日志"))
|
|
|
|
|
self.pushButtonLogLoad.setText(_translate("UartAssistant", "加载日志"))
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.checkBoxAutoSaveLog.setText(_translate("UartAssistant", "自动保存日志"))
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.groupBox_3.setTitle(_translate("UartAssistant", "定时发送"))
|
|
|
|
|
self.checkBoxReapitSend.setText(_translate("UartAssistant", "定时发送"))
|
|
|
|
|
self.label_7.setText(_translate("UartAssistant", "ms/次"))
|
|
|
|
|
self.lineEditTime.setText(_translate("UartAssistant", "1000"))
|
|
|
|
|
self.label_SendNum.setText(_translate("UartAssistant", "Tx"))
|
|
|
|
|
self.label_9.setText(_translate("UartAssistant", "Rx"))
|
|
|
|
|
self.label_10.setText(_translate("UartAssistant", "Powerd by Byan"))
|
|
|
|
|
self.groupBox_4.setTitle(_translate("UartAssistant", "数据接收区"))
|
|
|
|
|
self.groupBox_5.setTitle(_translate("UartAssistant", "数据发送区"))
|
|
|
|
|
self.pushButtonSend.setText(_translate("UartAssistant", "发送"))
|
|
|
|
|
self.pushButtonClearReceive.setText(_translate("UartAssistant", "清除接收"))
|
|
|
|
|
self.pushButtonClearSend.setText(_translate("UartAssistant", "清除发送"))
|
|
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("UartAssistant", "串口数据"))
|
|
|
|
|
self.radioButtonCH4QX.setText(_translate("UartAssistant", "CH4QX"))
|
|
|
|
|
self.radioButtonCH4TF.setText(_translate("UartAssistant", "CH4TF"))
|
|
|
|
|
self.pushButtonStartPlot.setText(_translate("UartAssistant", "开始绘图"))
|
|
|
|
|
self.pushButtonStopPlot.setText(_translate("UartAssistant", "停止绘图"))
|
2024-07-03 16:31:41 +08:00
|
|
|
|
self.checkBoxAutoSaveCsv.setText(_translate("UartAssistant", "自动保存Csv(慢)"))
|
2024-07-06 15:54:35 +08:00
|
|
|
|
self.label_SendNum_2.setText(_translate("UartAssistant", "当前数值"))
|
|
|
|
|
self.label_SendNum_3.setText(_translate("UartAssistant", "窗口均值"))
|
|
|
|
|
self.label_SendNum_4.setText(_translate("UartAssistant", "窗口标准差"))
|
2024-07-10 12:08:40 +08:00
|
|
|
|
self.pushButtonResetPlot.setText(_translate("UartAssistant", "重置图形"))
|
2024-07-03 12:01:11 +08:00
|
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("UartAssistant", "曲线绘制"))
|
|
|
|
|
from PyQt5.QtChart import QChartView
|