![]() |
|
#2
|
|||
|
|||
Just register the timer in your keyboard callback:
Code:
def timer1(): print 'Elapsed time:',viz.elapsed(), 'seconds' def onkeydown(key): if key == ' ': quad.add(MovingRoom) vizact.ontimer(60,timer1) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|