def update_terminal(self): buf_len = openmv.tx_buf_len() buf = openmv.tx_buf(buf_len) buffer = self.terminal.get_buffer() try: buffer.insert(buffer.get_end_iter(), buf) except: return False return True
def update_terminal(self): if (self.connected): try: buf_len = openmv.tx_buf_len() if (buf_len): buf = openmv.tx_buf(buf_len) buffer = self.terminal.get_buffer() buffer.insert(buffer.get_end_iter(), buf) except: pass return True