

def OnClose(self, event):
    'Called on application shutdown.'
    self.StopThread()
    self.serial.close()
    self.Destroy()

dataset/ETHPy150Open pyserial/pyserial/examples/wxTerminal.py TerminalFrame.OnClose/original