(self, *args, **kwargs)
| 19 | class Window(QWidget, Ui_FormSerialPort): |
| 20 | |
| 21 | def __init__(self, *args, **kwargs): |
| 22 | super(Window, self).__init__(*args, **kwargs) |
| 23 | self.setupUi(self) |
| 24 | self._serial = QSerialPort(self) # 用于连接串口的对象 |
| 25 | self._serial.readyRead.connect(self.onReadyRead) # 绑定数据读取信号 |
| 26 | # 首先获取可用的串口列表 |
| 27 | self.getAvailablePorts() |
| 28 | |
| 29 | @pyqtSlot() |
| 30 | def on_buttonConnect_clicked(self): |
nothing calls this directly
no test coverage detected