ID卡网络读卡器Python小程序开发

news2024/12/29 0:36:03

 UDP网络读卡器Python示例代码。

主页UI设计界面:

UI代码:

from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Frame(object):
    def setupUi(self, Frame):
        Frame.setObjectName("Frame")
        Frame.resize(1082, 685)
        font = QtGui.QFont()
        font.setFamily("宋体")
        Frame.setFont(font)
        self.PBSearch = QtWidgets.QPushButton(Frame)
        self.PBSearch.setGeometry(QtCore.QRect(10, 10, 140, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSearch.setFont(font)
        self.PBSearch.setObjectName("PBSearch")
        self.CBIP = QtWidgets.QComboBox(Frame)
        self.CBIP.setGeometry(QtCore.QRect(338, 10, 180, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.CBIP.setFont(font)
        self.CBIP.setObjectName("CBIP")
        self.tableWidget = QtWidgets.QTableWidget(Frame)
        self.tableWidget.setGeometry(QtCore.QRect(10, 50, 1061, 111))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.tableWidget.setFont(font)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(16)
        self.tableWidget.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(5, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(6, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(7, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(8, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(9, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(10, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(11, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(12, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(13, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(14, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(15, item)
        self.PBEditpara = QtWidgets.QPushButton(Frame)
        self.PBEditpara.setGeometry(QtCore.QRect(890, 10, 181, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBEditpara.setFont(font)
        self.PBEditpara.setObjectName("PBEditpara")
        self.PBSendDispBeep = QtWidgets.QPushButton(Frame)
        self.PBSendDispBeep.setGeometry(QtCore.QRect(10, 206, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSendDispBeep.setFont(font)
        self.PBSendDispBeep.setObjectName("PBSendDispBeep")
        self.PBSendDispTTS = QtWidgets.QPushButton(Frame)
        self.PBSendDispTTS.setGeometry(QtCore.QRect(10, 296, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSendDispTTS.setFont(font)
        self.PBSendDispTTS.setObjectName("PBSendDispTTS")
        self.CBbeep = QtWidgets.QComboBox(Frame)
        self.CBbeep.setGeometry(QtCore.QRect(300, 206, 111, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.CBbeep.setFont(font)
        self.CBbeep.setObjectName("CBbeep")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.CBbeep.addItem("")
        self.textEdit = QtWidgets.QTextEdit(Frame)
        self.textEdit.setGeometry(QtCore.QRect(518, 276, 551, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.textEdit.setFont(font)
        self.textEdit.setObjectName("textEdit")
        self.PBSendDispSpk = QtWidgets.QPushButton(Frame)
        self.PBSendDispSpk.setGeometry(QtCore.QRect(10, 266, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSendDispSpk.setFont(font)
        self.PBSendDispSpk.setObjectName("PBSendDispSpk")
        self.CBspeak = QtWidgets.QComboBox(Frame)
        self.CBspeak.setGeometry(QtCore.QRect(517, 206, 160, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.CBspeak.setFont(font)
        self.CBspeak.setObjectName("CBspeak")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.CBspeak.addItem("")
        self.label = QtWidgets.QLabel(Frame)
        self.label.setGeometry(QtCore.QRect(241, 216, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(Frame)
        self.label_2.setGeometry(QtCore.QRect(456, 216, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(Frame)
        self.label_3.setGeometry(QtCore.QRect(456, 286, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.PBReadCard = QtWidgets.QPushButton(Frame)
        self.PBReadCard.setGeometry(QtCore.QRect(10, 335, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBReadCard.setFont(font)
        self.PBReadCard.setObjectName("PBReadCard")
        self.PBWriteCard = QtWidgets.QPushButton(Frame)
        self.PBWriteCard.setGeometry(QtCore.QRect(10, 365, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBWriteCard.setFont(font)
        self.PBWriteCard.setObjectName("PBWriteCard")
        self.PBChangeKey = QtWidgets.QPushButton(Frame)
        self.PBChangeKey.setGeometry(QtCore.QRect(10, 395, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBChangeKey.setFont(font)
        self.PBChangeKey.setObjectName("PBChangeKey")
        self.PBSwitchOn = QtWidgets.QPushButton(Frame)
        self.PBSwitchOn.setGeometry(QtCore.QRect(10, 236, 131, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSwitchOn.setFont(font)
        self.PBSwitchOn.setObjectName("PBSwitchOn")
        self.PBSwitchOff = QtWidgets.QPushButton(Frame)
        self.PBSwitchOff.setGeometry(QtCore.QRect(140, 236, 91, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSwitchOff.setFont(font)
        self.PBSwitchOff.setObjectName("PBSwitchOff")
        self.PBClear = QtWidgets.QPushButton(Frame)
        self.PBClear.setGeometry(QtCore.QRect(10, 445, 220, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBClear.setFont(font)
        self.PBClear.setObjectName("PBClear")
        self.label_4 = QtWidgets.QLabel(Frame)
        self.label_4.setGeometry(QtCore.QRect(240, 286, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.spinBox = QtWidgets.QSpinBox(Frame)
        self.spinBox.setGeometry(QtCore.QRect(300, 276, 91, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.spinBox.setFont(font)
        self.spinBox.setMaximum(255)
        self.spinBox.setObjectName("spinBox")
        self.label_5 = QtWidgets.QLabel(Frame)
        self.label_5.setGeometry(QtCore.QRect(713, 216, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.textEdit_2 = QtWidgets.QTextEdit(Frame)
        self.textEdit_2.setGeometry(QtCore.QRect(771, 206, 300, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.textEdit_2.setFont(font)
        self.textEdit_2.setObjectName("textEdit_2")
        self.CBSwitch = QtWidgets.QComboBox(Frame)
        self.CBSwitch.setGeometry(QtCore.QRect(300, 241, 111, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.CBSwitch.setFont(font)
        self.CBSwitch.setObjectName("CBSwitch")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.CBSwitch.addItem("")
        self.label_6 = QtWidgets.QLabel(Frame)
        self.label_6.setGeometry(QtCore.QRect(241, 251, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(Frame)
        self.label_7.setGeometry(QtCore.QRect(455, 251, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.spinBox_2 = QtWidgets.QSpinBox(Frame)
        self.spinBox_2.setGeometry(QtCore.QRect(518, 241, 91, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.spinBox_2.setFont(font)
        self.spinBox_2.setMaximum(65535)
        self.spinBox_2.setObjectName("spinBox_2")
        self.spinBox_3 = QtWidgets.QSpinBox(Frame)
        self.spinBox_3.setGeometry(QtCore.QRect(772, 240, 91, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.spinBox_3.setFont(font)
        self.spinBox_3.setMaximum(25)
        self.spinBox_3.setObjectName("spinBox_3")
        self.label_8 = QtWidgets.QLabel(Frame)
        self.label_8.setGeometry(QtCore.QRect(709, 250, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.label_9 = QtWidgets.QLabel(Frame)
        self.label_9.setGeometry(QtCore.QRect(240, 340, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.textEdit_3 = QtWidgets.QTextEdit(Frame)
        self.textEdit_3.setGeometry(QtCore.QRect(300, 330, 111, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.textEdit_3.setFont(font)
        self.textEdit_3.setObjectName("textEdit_3")
        self.label_10 = QtWidgets.QLabel(Frame)
        self.label_10.setGeometry(QtCore.QRect(459, 340, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.CBPage = QtWidgets.QComboBox(Frame)
        self.CBPage.setGeometry(QtCore.QRect(520, 330, 111, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.CBPage.setFont(font)
        self.CBPage.setObjectName("CBPage")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBPage.addItem("")
        self.CBauth = QtWidgets.QComboBox(Frame)
        self.CBauth.setGeometry(QtCore.QRect(742, 330, 111, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.CBauth.setFont(font)
        self.CBauth.setObjectName("CBauth")
        self.CBauth.addItem("")
        self.CBauth.addItem("")
        self.label_11 = QtWidgets.QLabel(Frame)
        self.label_11.setGeometry(QtCore.QRect(660, 340, 81, 16))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_11.setFont(font)
        self.label_11.setObjectName("label_11")
        self.label_12 = QtWidgets.QLabel(Frame)
        self.label_12.setGeometry(QtCore.QRect(880, 340, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_12.setFont(font)
        self.label_12.setObjectName("label_12")
        self.textEdit_4 = QtWidgets.QTextEdit(Frame)
        self.textEdit_4.setGeometry(QtCore.QRect(940, 330, 131, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.textEdit_4.setFont(font)
        self.textEdit_4.setObjectName("textEdit_4")
        self.label_13 = QtWidgets.QLabel(Frame)
        self.label_13.setGeometry(QtCore.QRect(240, 373, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_13.setFont(font)
        self.label_13.setObjectName("label_13")
        self.textEdit_5 = QtWidgets.QTextEdit(Frame)
        self.textEdit_5.setGeometry(QtCore.QRect(300, 365, 771, 41))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.textEdit_5.setFont(font)
        self.textEdit_5.setObjectName("textEdit_5")
        self.label_14 = QtWidgets.QLabel(Frame)
        self.label_14.setGeometry(QtCore.QRect(250, 420, 54, 12))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_14.setFont(font)
        self.label_14.setObjectName("label_14")
        self.textEdit_6 = QtWidgets.QTextEdit(Frame)
        self.textEdit_6.setGeometry(QtCore.QRect(300, 410, 361, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.textEdit_6.setFont(font)
        self.textEdit_6.setObjectName("textEdit_6")
        self.TEPort = QtWidgets.QTextEdit(Frame)
        self.TEPort.setGeometry(QtCore.QRect(601, 10, 71, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.TEPort.setFont(font)
        self.TEPort.setObjectName("TEPort")
        self.label_15 = QtWidgets.QLabel(Frame)
        self.label_15.setGeometry(QtCore.QRect(10, 170, 110, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.label_15.setFont(font)
        self.label_15.setObjectName("label_15")
        self.textEdit_7 = QtWidgets.QTextEdit(Frame)
        self.textEdit_7.setGeometry(QtCore.QRect(126, 164, 201, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.textEdit_7.setFont(font)
        self.textEdit_7.setObjectName("textEdit_7")
        self.listWidget = QtWidgets.QListWidget(Frame)
        self.listWidget.setGeometry(QtCore.QRect(10, 480, 1061, 160))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.listWidget.setFont(font)
        self.listWidget.setObjectName("listWidget")
        self.ChangeKey = QtWidgets.QComboBox(Frame)
        self.ChangeKey.setGeometry(QtCore.QRect(670, 410, 130, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.ChangeKey.setFont(font)
        self.ChangeKey.setObjectName("ChangeKey")
        self.ChangeKey.addItem("")
        self.ChangeKey.addItem("")
        self.ChangeKey.addItem("")
        self.ChangeKey.addItem("")
        self.label_16 = QtWidgets.QLabel(Frame)
        self.label_16.setGeometry(QtCore.QRect(350, 170, 41, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.label_16.setFont(font)
        self.label_16.setObjectName("label_16")
        self.textEdit_8 = QtWidgets.QTextEdit(Frame)
        self.textEdit_8.setGeometry(QtCore.QRect(400, 164, 71, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(12)
        self.textEdit_8.setFont(font)
        self.textEdit_8.setObjectName("textEdit_8")
        self.label_17 = QtWidgets.QLabel(Frame)
        self.label_17.setGeometry(QtCore.QRect(168, 21, 161, 21))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.label_17.setFont(font)
        self.label_17.setObjectName("label_17")
        self.label_18 = QtWidgets.QLabel(Frame)
        self.label_18.setGeometry(QtCore.QRect(535, 22, 61, 16))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.label_18.setFont(font)
        self.label_18.setObjectName("label_18")
        self.PBSetRW = QtWidgets.QPushButton(Frame)
        self.PBSetRW.setGeometry(QtCore.QRect(842, 410, 230, 31))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.PBSetRW.setFont(font)
        self.PBSetRW.setObjectName("PBSetRW")
        self.label_19 = QtWidgets.QLabel(Frame)
        self.label_19.setGeometry(QtCore.QRect(746, 166, 330, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        self.label_19.setFont(font)
        self.label_19.setObjectName("label_19")
        self.PBWifiSet = QtWidgets.QPushButton(Frame)
        self.PBWifiSet.setGeometry(QtCore.QRect(300, 445, 130, 31))
        self.PBWifiSet.setObjectName("PBWifiSet")
        self.textEdit_9 = QtWidgets.QTextEdit(Frame)
        self.textEdit_9.setGeometry(QtCore.QRect(10, 643, 1061, 40))
        self.textEdit_9.setObjectName("textEdit_9")
        self.PBGetmodel = QtWidgets.QPushButton(Frame)
        self.PBGetmodel.setGeometry(QtCore.QRect(515, 164, 160, 31))
        self.PBGetmodel.setObjectName("PBGetmodel")
        self.PB15693RW = QtWidgets.QPushButton(Frame)
        self.PB15693RW.setGeometry(QtCore.QRect(430, 445, 130, 31))
        self.PB15693RW.setObjectName("PB15693RW")

        self.retranslateUi(Frame)
        QtCore.QMetaObject.connectSlotsByName(Frame)

    def retranslateUi(self, Frame):
        _translate = QtCore.QCoreApplication.translate
        Frame.setWindowTitle(_translate("Frame", "Frame"))
        self.PBSearch.setText(_translate("Frame", "搜索所有在线设备"))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("Frame", "设备编号"))
        item = self.tableWidget.horizontalHeaderItem(1)
        item.setText(_translate("Frame", "设备IP"))
        item = self.tableWidget.horizontalHeaderItem(2)
        item.setText(_translate("Frame", "子网掩码"))
        item = self.tableWidget.horizontalHeaderItem(3)
        item.setText(_translate("Frame", "通讯端口"))
        item = self.tableWidget.horizontalHeaderItem(4)
        item.setText(_translate("Frame", "设备网关"))
        item = self.tableWidget.horizontalHeaderItem(5)
        item.setText(_translate("Frame", "网关MAC"))
        item = self.tableWidget.horizontalHeaderItem(6)
        item.setText(_translate("Frame", "目标服务器IP"))
        item = self.tableWidget.horizontalHeaderItem(7)
        item.setText(_translate("Frame", "服务器MAC"))
        item = self.tableWidget.horizontalHeaderItem(8)
        item.setText(_translate("Frame", "搜索标志"))
        item = self.tableWidget.horizontalHeaderItem(9)
        item.setText(_translate("Frame", "参数"))
        item = self.tableWidget.horizontalHeaderItem(10)
        item.setText(_translate("Frame", "出厂序号"))
        item = self.tableWidget.horizontalHeaderItem(11)
        item.setText(_translate("Frame", "STC系列 设备MAC"))
        item = self.tableWidget.horizontalHeaderItem(12)
        item.setText(_translate("Frame", "唯一硬件序号"))
        item = self.tableWidget.horizontalHeaderItem(13)
        item.setText(_translate("Frame", "CH系列 设备MAC"))
        item = self.tableWidget.horizontalHeaderItem(14)
        item.setText(_translate("Frame", "版本型号"))
        item = self.tableWidget.horizontalHeaderItem(15)
        item.setText(_translate("Frame", "固件日期"))
        self.PBEditpara.setText(_translate("Frame", "修改选定设备的网络参数"))
        self.PBSendDispBeep.setText(_translate("Frame", "驱动设备显示文字及蜂鸣响声"))
        self.PBSendDispTTS.setText(_translate("Frame", "驱动设备显示文字+TTS语音+继电器"))
        self.CBbeep.setItemText(0, _translate("Frame", "短滴一声"))
        self.CBbeep.setItemText(1, _translate("Frame", "短滴两声"))
        self.CBbeep.setItemText(2, _translate("Frame", "短滴三声"))
        self.CBbeep.setItemText(3, _translate("Frame", "长鸣一声"))
        self.CBbeep.setItemText(4, _translate("Frame", "长鸣两声"))
        self.CBbeep.setItemText(5, _translate("Frame", "长鸣三声"))
        self.CBbeep.setItemText(6, _translate("Frame", "一长一短"))
        self.CBbeep.setItemText(7, _translate("Frame", "一长两短"))
        self.CBbeep.setItemText(8, _translate("Frame", "一长三短"))
        self.CBbeep.setItemText(9, _translate("Frame", "两长一短"))
        self.CBbeep.setItemText(10, _translate("Frame", "两长两短"))
        self.CBbeep.setItemText(11, _translate("Frame", "两长三短"))
        self.textEdit.setPlaceholderText(_translate("Frame", "欢迎您使用我们的网络读卡器!"))
        self.PBSendDispSpk.setText(_translate("Frame", "驱动设备显示文字+组合语音+继电器"))
        self.CBspeak.setItemText(0, _translate("Frame", "0  零"))
        self.CBspeak.setItemText(1, _translate("Frame", "1  壹"))
        self.CBspeak.setItemText(2, _translate("Frame", "2  贰"))
        self.CBspeak.setItemText(3, _translate("Frame", "3  叁"))
        self.CBspeak.setItemText(4, _translate("Frame", "4  肆"))
        self.CBspeak.setItemText(5, _translate("Frame", "5  伍"))
        self.CBspeak.setItemText(6, _translate("Frame", "6  陆"))
        self.CBspeak.setItemText(7, _translate("Frame", "7  柒"))
        self.CBspeak.setItemText(8, _translate("Frame", "8  捌"))
        self.CBspeak.setItemText(9, _translate("Frame", "9  玖"))
        self.CBspeak.setItemText(10, _translate("Frame", "10 拾"))
        self.CBspeak.setItemText(11, _translate("Frame", "11 佰"))
        self.CBspeak.setItemText(12, _translate("Frame", "12 仟"))
        self.CBspeak.setItemText(13, _translate("Frame", "13 万"))
        self.CBspeak.setItemText(14, _translate("Frame", "14 点"))
        self.CBspeak.setItemText(15, _translate("Frame", "15 分"))
        self.CBspeak.setItemText(16, _translate("Frame", "16 角"))
        self.CBspeak.setItemText(17, _translate("Frame", "17 元"))
        self.CBspeak.setItemText(18, _translate("Frame", "18 设备故障,请看屏幕提示"))
        self.CBspeak.setItemText(19, _translate("Frame", "19 无效卡"))
        self.CBspeak.setItemText(20, _translate("Frame", "20 非本单位卡"))
        self.CBspeak.setItemText(21, _translate("Frame", "21 此卡类型不许可"))
        self.CBspeak.setItemText(22, _translate("Frame", "22 此卡已挂失"))
        self.CBspeak.setItemText(23, _translate("Frame", "23 卡已过期"))
        self.CBspeak.setItemText(24, _translate("Frame", "24 剩余次数"))
        self.CBspeak.setItemText(25, _translate("Frame", "25 余额不足"))
        self.CBspeak.setItemText(26, _translate("Frame", "26 次数不足"))
        self.CBspeak.setItemText(27, _translate("Frame", "27 密码错误"))
        self.CBspeak.setItemText(28, _translate("Frame", "28 记录已满"))
        self.CBspeak.setItemText(29, _translate("Frame", "29 本餐"))
        self.CBspeak.setItemText(30, _translate("Frame", "30 当天"))
        self.CBspeak.setItemText(31, _translate("Frame", "31 累计消费已超出"))
        self.CBspeak.setItemText(32, _translate("Frame", "32 累计次数已超出"))
        self.CBspeak.setItemText(33, _translate("Frame", "33 卡号"))
        self.CBspeak.setItemText(34, _translate("Frame", "34 机号"))
        self.CBspeak.setItemText(35, _translate("Frame", "35 余额"))
        self.CBspeak.setItemText(36, _translate("Frame", "36 本次消费"))
        self.CBspeak.setItemText(37, _translate("Frame", "37 本次加款"))
        self.CBspeak.setItemText(38, _translate("Frame", "38 不允许在此时段刷卡"))
        self.CBspeak.setItemText(39, _translate("Frame", "39 消费"))
        self.CBspeak.setItemText(40, _translate("Frame", "40 充值"))
        self.CBspeak.setItemText(41, _translate("Frame", "41 成功"))
        self.CBspeak.setItemText(42, _translate("Frame", "42 失败"))
        self.CBspeak.setItemText(43, _translate("Frame", "43 请输入密码"))
        self.CBspeak.setItemText(44, _translate("Frame", "44 请重新刷卡"))
        self.CBspeak.setItemText(45, _translate("Frame", "45 取餐"))
        self.CBspeak.setItemText(46, _translate("Frame", "46 没有订餐"))
        self.CBspeak.setItemText(47, _translate("Frame", "47 早上好"))
        self.CBspeak.setItemText(48, _translate("Frame", "48 中午好"))
        self.CBspeak.setItemText(49, _translate("Frame", "49 下午好"))
        self.CBspeak.setItemText(50, _translate("Frame", "50 晚上好"))
        self.CBspeak.setItemText(51, _translate("Frame", "51 已充值"))
        self.CBspeak.setItemText(52, _translate("Frame", "52 已取餐"))
        self.CBspeak.setItemText(53, _translate("Frame", "53 谢谢"))
        self.CBspeak.setItemText(54, _translate("Frame", "54 已消费"))
        self.CBspeak.setItemText(55, _translate("Frame", "55 刷卡"))
        self.CBspeak.setItemText(56, _translate("Frame", "56 订餐"))
        self.CBspeak.setItemText(57, _translate("Frame", "57 次"))
        self.label.setText(_translate("Frame", "蜂鸣响声:"))
        self.label_2.setText(_translate("Frame", "组合语音:"))
        self.label_3.setText(_translate("Frame", "显示文字:"))
        self.PBReadCard.setText(_translate("Frame", "驱动读写器读取指定扇区数据"))
        self.PBWriteCard.setText(_translate("Frame", "驱动读写器写数据到指定扇区"))
        self.PBChangeKey.setText(_translate("Frame", "驱动读写器更改指定扇区密码"))
        self.PBSwitchOn.setText(_translate("Frame", "驱动设备开启继电器"))
        self.PBSwitchOff.setText(_translate("Frame", "关闭继电器"))
        self.PBClear.setText(_translate("Frame", "清空以下 端口通讯数据报文"))
        self.label_4.setText(_translate("Frame", "显示延时:"))
        self.label_5.setText(_translate("Frame", "TTS语音:"))
        self.textEdit_2.setPlaceholderText(_translate("Frame", "欢迎您使用我们的网络读卡器!"))
        self.CBSwitch.setItemText(0, _translate("Frame", "全部继电器"))
        self.CBSwitch.setItemText(1, _translate("Frame", "1 号继电器"))
        self.CBSwitch.setItemText(2, _translate("Frame", "2 号继电器"))
        self.CBSwitch.setItemText(3, _translate("Frame", "3 号继电器"))
        self.CBSwitch.setItemText(4, _translate("Frame", "4 号继电器"))
        self.CBSwitch.setItemText(5, _translate("Frame", "5 号继电器"))
        self.CBSwitch.setItemText(6, _translate("Frame", "6 号继电器"))
        self.CBSwitch.setItemText(7, _translate("Frame", "7 号继电器"))
        self.CBSwitch.setItemText(8, _translate("Frame", "8 号继电器"))
        self.label_6.setText(_translate("Frame", "继电器号:"))
        self.label_7.setText(_translate("Frame", "开启延时:"))
        self.label_8.setText(_translate("Frame", "语音音量:"))
        self.label_9.setText(_translate("Frame", "IC卡卡号:"))
        self.textEdit_3.setPlaceholderText(_translate("Frame", "00000000"))
        self.label_10.setText(_translate("Frame", "选择扇区:"))
        self.CBPage.setItemText(0, _translate("Frame", "第  0 扇区"))
        self.CBPage.setItemText(1, _translate("Frame", "第  1 扇区"))
        self.CBPage.setItemText(2, _translate("Frame", "第  2 扇区"))
        self.CBPage.setItemText(3, _translate("Frame", "第  3 扇区"))
        self.CBPage.setItemText(4, _translate("Frame", "第  4 扇区"))
        self.CBPage.setItemText(5, _translate("Frame", "第  5 扇区"))
        self.CBPage.setItemText(6, _translate("Frame", "第  6 扇区"))
        self.CBPage.setItemText(7, _translate("Frame", "第  7 扇区"))
        self.CBPage.setItemText(8, _translate("Frame", "第  8 扇区"))
        self.CBPage.setItemText(9, _translate("Frame", "第  9 扇区"))
        self.CBPage.setItemText(10, _translate("Frame", "第 10 扇区"))
        self.CBPage.setItemText(11, _translate("Frame", "第 11 扇区"))
        self.CBPage.setItemText(12, _translate("Frame", "第 12 扇区"))
        self.CBPage.setItemText(13, _translate("Frame", "第 13 扇区"))
        self.CBPage.setItemText(14, _translate("Frame", "第 14 扇区"))
        self.CBPage.setItemText(15, _translate("Frame", "第 15 扇区"))
        self.CBauth.setItemText(0, _translate("Frame", "A 密码"))
        self.CBauth.setItemText(1, _translate("Frame", "B 密码"))
        self.label_11.setText(_translate("Frame", "密码认证类型:"))
        self.label_12.setText(_translate("Frame", "卡片密码:"))
        self.textEdit_4.setPlaceholderText(_translate("Frame", "FFFFFFFFFFFF"))
        self.label_13.setText(_translate("Frame", "扇区数据:"))
        self.textEdit_5.setPlaceholderText(_translate("Frame", "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"))
        self.label_14.setText(_translate("Frame", "新密码:"))
        self.textEdit_6.setPlaceholderText(_translate("Frame", "FF FF FF FF FF FF FF 07 80 69 FF FF FF FF FF FF"))
        self.TEPort.setPlaceholderText(_translate("Frame", "39169"))
        self.label_15.setText(_translate("Frame", "设备IP及端口:"))
        self.textEdit_7.setPlaceholderText(_translate("Frame", "192.168.1.228:39169"))
        self.ChangeKey.setItemText(0, _translate("Frame", "只修改A密码"))
        self.ChangeKey.setItemText(1, _translate("Frame", "修改A密码及控制字"))
        self.ChangeKey.setItemText(2, _translate("Frame", "修改A、B密码"))
        self.ChangeKey.setItemText(3, _translate("Frame", "修改A、B密码及控制字"))
        self.label_16.setText(_translate("Frame", "机号:"))
        self.textEdit_8.setPlaceholderText(_translate("Frame", "00000"))
        self.label_17.setText(_translate("Frame", "请选择与读卡器连接的网卡:"))
        self.label_18.setText(_translate("Frame", "通讯端口:"))
        self.PBSetRW.setText(_translate("Frame", "IC读写器设置主动读扇区及认证密钥"))
        self.label_19.setText(_translate("Frame", "在线设备参数信息栏,可双击选择在线设备再向其发送指令"))
        self.PBWifiSet.setText(_translate("Frame", "设置WIFI热点参数"))
        self.PBGetmodel.setText(_translate("Frame", "获取版本型号固件日期"))
        self.PB15693RW.setText(_translate("Frame", "15693卡读写测试"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Frame = QtWidgets.QFrame()
    ui = Ui_Frame()
    ui.setupUi(Frame)
    Frame.show()
    sys.exit(app.exec_())

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2267172.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

yarn list --pattern vuex-module-decorators

dgqdgqdeMac-mini spid-admin % yarn list --pattern vuex-module-decorators yarn list v1.22.22 └─ vuex-module-decorators0.16.1 ✨ Done in 0.24s.好的,这段代码是一个典型的 Vuex 模块定义,使用了 vuex-module-decorators 库。这个库为 Vuex 提…

微机接口课设——基于Proteus和8086的打地鼠设计(8255、8253、8259)Proteus中Unknown 1-byte opcode / Unknown 2-byte opcode错误

原理图设计 汇编代码 ; I/O 端口地址定义 IOY0 EQU 0600H IOY1 EQU 0640H IOY2 EQU 0680HMY8255_A EQU IOY000H*2 ; 8255 A 口端口地址 MY8255_B EQU IOY001H*2 ; 8255 B 口端口地址 MY8255_C EQU IOY002H*2 ; 8255 C 口端口地址 MY8255_MODE EQU IOY003H*2 ; …

【HENU】河南大学计院2024 计算机网络 期末复习知识点

和光同尘_我的个人主页 一直游到海水变蓝。 计网复习 第一章互联网组成类别交换方式分组交换的要点:分组交换的优点: 网络性能指标体系结构网络协议五层协议 第二章:物理层物理层的主要任务(四大特性)通信的三种方式…

chatwoot 开源客服系统搭建

1. 准备开源客服系统(我是用的Chatwoot ) 可以选择以下开源客服系统作为基础: Chatwoot: 功能强大,支持多渠道客户对接,(支持app,web)。Zammad: 现代的开源工单系统。FreeScout: 免…

python爬虫----爬取视频实战

python爬虫-爬取视频 本次爬取,还是运用的是requests方法 首先进入此网站中,选取你想要爬取的视频,进入视频页面,按F12,将网络中的名称栏向上拉找到第一个并点击,可以在标头中,找到后续我们想要…

【PPTist】表格功能

前言&#xff1a;这篇文章来探讨一下表格功能是怎么实现的吧&#xff01; 一、插入表格 我们可以看到&#xff0c;鼠标移动到菜单项上出现的提示语是“插入表格” 那么就全局搜索一下&#xff0c;就发现这个菜单在 src/views/Editor/CanvasTool/index.vue 文件中 <Popov…

Web安全攻防入门教程——hvv行动详解

Web安全攻防入门教程 Web安全攻防是指在Web应用程序的开发、部署和运行过程中&#xff0c;保护Web应用免受攻击和恶意行为的技术与策略。这个领域不仅涉及防御措施的实现&#xff0c;还包括通过渗透测试、漏洞挖掘和模拟攻击来识别潜在的安全问题。 本教程将带你入门Web安全攻防…

游戏开发线性空间下PS工作流程

前言 使用基于物理的渲染&#xff0c;为了保证光照计算的准确&#xff0c;需要使用线性空间&#xff1b; 使用线性空间会带来一个问题&#xff0c;ui 在游戏引擎中的渲染结果与 PS 中的不一致&#xff1a; PS&#xff08;颜色空间默认是sRGB伽马空间&#xff09;&#xff1a…

Segment Routing Overview

大家觉得有意义和帮助记得及时关注和点赞!!! Segment Routing (SR) 是近年来网络领域的一项新技术&#xff0c;“segment” 在这里 指代网络隔离技术&#xff0c;例如 MPLS。如果快速回顾网络设计在过去几十年的 发展&#xff0c;我们会发现 SR 也许是正在形成的第三代网络设计…

【连续学习之随机初始化算法 】2024Nature期刊论文Loss of plasticity in deep continual learning

1 介绍 年份&#xff1a;2024 期刊&#xff1a;Nature Dohare S, Hernandez-Garcia J F, Lan Q, et al. Loss of plasticity in deep continual learning[J]. Nature, 2024, 632(8026): 768-774. 本文提出的算法是“持续反向传播”&#xff08;continual backpropagation&a…

【NODE】01-fs和path常用知识点

前言 最近在使用express-generator知识进行搭建前后端通信&#xff0c;其中有些知识点涉及到nodejs的fs和path核心模块&#xff0c;因此另写一篇文章进行介绍和代码案例练习。 fs&#xff08;文件系统&#xff09;和 path 是 Node.js 的核心模块&#xff0c;用于文件操作和路径…

两分钟解决:vscode卡在设置SSH主机,VS Code-正在本地初始化VSCode服务器

问题原因 remote-ssh还是有一些bug的&#xff0c;在跟新之后可能会一直加载初始化SSH主机解决方案 1.打开终端2.登录链接vscode的账号&#xff0c;到家目录下3.找到 .vscode-server文件,删掉这个文件4.重启 vscode 就没问题了

干货ScottPlot4向ScottPlot5迁移

干货ScottPlot4向ScottPlot5迁移 干货满满1.背景2.需求的引出3.先说结论1.好消息2.坏消息 4.迁移的部分笔记ColorScottPlot.PlottableScottPlot.Plottables中的对象如何定义添加 ScottPlot.Plottable.ScatterPlot 对象ScatterPolygonMarker也类似 Scatter的marker formsPlot1Re…

Github优质项目推荐(第九期)

文章目录 Github优质项目推荐&#xff08;第九期&#xff09;一、【tldraw】&#xff0c;37.1k stars - 在 React 中创建无限画布体验的库二、【zapret】&#xff0c;9.1k stars - 独立&#xff08;无需第三方服务器&#xff09;DPI 规避工具三、【uBlock】&#xff0c;48.3k s…

学习threejs,THREE.PlaneGeometry 二维平面几何体

&#x1f468;‍⚕️ 主页&#xff1a; gis分享者 &#x1f468;‍⚕️ 感谢各位大佬 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! &#x1f468;‍⚕️ 收录于专栏&#xff1a;threejs gis工程师 文章目录 一、&#x1f340;前言1.1 ☘️HREE.PlaneGeometry 二维平…

力扣矩阵-算法模版总结

lc-73.矩阵置零-(时隔14天)-12.27 思路&#xff1a;(23min22s) 1.直接遍历遇0将行列设0肯定不行&#xff0c;会影响后续判断&#xff0c;题目又要求原地算法&#xff0c;那么进一步考虑是否可以将元素为0&#xff0c;其行列需要设为0的位置给存储下来&#xff0c;最后再遍历根据…

面向对象的设计原则与设计模式

目的 设计模式的目的是提高代码的重用性&#xff0c;可读性、可扩展性、可靠性&#xff0c;使程序呈现高内聚&#xff0c;低耦合的特性 原则 单一职责原则 假设有一个class负责两个职责&#xff0c;一旦发生需求变更&#xff0c;修改其中一个职责的逻辑代码&#xff0c;有可能…

网络安全词云图与技术浅谈

网络安全词云图与技术浅谈 一、网络安全词云图生成 为了直观地展示网络安全领域的关键术语&#xff0c;我们可以通过词云图&#xff08;Word Cloud&#xff09;的形式来呈现。词云图是一种数据可视化工具&#xff0c;它通过字体大小和颜色的差异来突出显示文本中出现频率较高…

Jsonlizer,一个把C++各类数据转成 Json 结构体的玩意儿

这段时间突发奇想&#xff0c;觉得可以弄一个Json和C各种数据类型互转的工具&#xff0c;因为Json在进行数据储存的时候&#xff0c;有一些先天的优势&#xff0c;传统的C的序列化方式是将数据序列化到流数据里面&#xff0c;而流数据是典型的串行结构&#xff08;或则说是一维…

删除拼排序链表中的重复元素(最优解)

题目来源 82. 删除排序链表中的重复元素 II - 力扣&#xff08;LeetCode&#xff09; 题目描述 给定一个已排序的链表的头 head &#xff0c; 删除原始链表中所有重复数字的节点&#xff0c;只留下不同的数字 。返回 已排序的链表 。 示例 1&#xff1a; 输入&#xff1a;head…