Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/b/r/BrickPython-0.4/BrickPython/CommandLineApplication.py   BrickPython(Download)
    def mainloop(self):
        'The main loop for the application - call this after initialization.  Never returns.'
        while True:
            self.doWork()
            time.sleep(self.timeMillisToNextCall() / 1000.0)

src/b/r/BrickPython-0.4/BrickPython/TkApplication.py   BrickPython(Download)
    def timerTick(self):
        # Private: Does all the coroutine processing, every 20ms or so.
        self.doWork()
        self.root.after(int(self.timeMillisToNextCall()), self.timerTick)