def theLoop(self):
        if self.running:
            soFar = time.clock() - self.runStartTime
            self.elapsedVar.set(time.strftime("%M:%S", 
                                              time.localtime(soFar)))
            while self.queue.qsize():
                try:
                    print "getting message"
                    msg = self.queue.get(0)
                    # Check contents of message and do what it says
                    # As a test, we simply print it
                    msg(self)
                    self.top.update()
                except Queue.Empty:
                    pass
            self.top.after(100, self.theLoop)
dataset/ETHPy150Open radekstepan/FlaskBudget/tests_gui.py/EnhancedGUIRunner.theLoop/original