Home | Trees | Indices | Help |
|
---|
|
1 from pyjamas.Timer import Timer 2 3 deferredCommands = [] 4 timerIsActive = False 5 6 10 1113 for i in range(len(deferredCommands)): 14 current = deferredCommands[0] 15 del deferredCommands[0] 16 if current: 17 if hasattr(current, "execute"): 18 current.execute() 19 else: 20 current()21 2224 global timerIsActive 25 26 if (not timerIsActive) and (not len(deferredCommands) == 0): 27 Timer(1, onTimer) 28 timerIsActive = True29 3032 global timerIsActive 33 34 flushDeferredCommands() 35 timerIsActive = False 36 maybeSetDeferredCommandTimer()37
Home | Trees | Indices | Help |
|
---|
http://epydoc.sourceforge.net |