I have some problems with this, I receive data from a serial port :
def SerialReadlineThread(self): while True: try: if self.isopen: