def receiveThread(): global DISPATCH_QUEUE while True: message = MessagePasser.receive() if message != None: # TODO: check the type of the message DISPATCH_QUEUE.append(message) time.sleep(0.05)
def receive(self): self.label["text"] = MessagePasser.receive()