| | |
| | | from ast import Not, Pass |
| | | from asyncio.windows_events import NULL |
| | | from concurrent.futures import thread |
| | | from curses import flash |
| | | from logging import exception |
| | |
| | | self.UI.lineEdit_2.clear() |
| | | data = self.ReadByDID(tempdid) |
| | | if data is not None and len(str(data[tempdid])): |
| | | # print(data[tempdid]) |
| | | self.UI.lineEdit_2.setText(data[tempdid]) |
| | | if '\x00' in data[tempdid]: |
| | | out1, out2 = data[tempdid].split('\x00', 1) |
| | | self.UI.lineEdit_2.setText(out1) |
| | | else: |
| | | self.UI.lineEdit_2.setText(data[tempdid]) |
| | | |
| | | def WriteDataByID(self): |
| | | tempdid = DID_dic[self.UI.comboBox_6.currentText()] |