

def OnSerialRead(self, event):
    'Handle input from the serial port.'
    event.WriteText(event.data.decode('UTF-8', 'replace'))

dataset/ETHPy150Open pyserial/pyserial/examples/wxTerminal.py TerminalFrame.OnSerialRead/VarMisuse@14/29 `self`->`event`