Home | Trees | Indices | Help |
|
---|
|
1 from pyjamas.Timer import Timer 2 3 deferredCommands = [] 4 timerIsActive = False 5 911 for i in range(len(deferredCommands)): 12 current = deferredCommands[0] 13 del deferredCommands[0] 14 if current: 15 current.execute()1618 global timerIsActive 19 20 if (not timerIsActive) and (not len(deferredCommands)==0): 21 Timer(1, onTimer) 22 timerIsActive = True2325 global timerIsActive 26 27 flushDeferredCommands() 28 timerIsActive = False 29 maybeSetDeferredCommandTimer()30
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jun 16 12:42:32 2010 | http://epydoc.sourceforge.net |