def processIncoming(self):
        """
        Handle all the messages currently in the queue (if any).
        """
        while self.queue.qsize():
            try:
                msg = self.queue.get(0)
                # Check contents of message and do what it says
                # As a test, we simply print it
                print msg
            except Queue.Empty:
                pass

        Handle all the messages currently in the queue (if any).
        
recipes/Python/82965_Threads_Tkinter_asynchronous/recipe-82965.py