def process_all_messages(self): try: while True: self.process_next_message() except EOFError: from drawgraph import display_async_quit display_async_quit()