MCPcopy
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QSerialPort/SerialDebugAssistant.py:21–27  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

19class 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):

Callers

nothing calls this directly

Calls 2

getAvailablePortsMethod · 0.95
setupUiMethod · 0.45

Tested by

no test coverage detected