![]() |
|
#4
|
|||
|
|||
|
You could use viz.TOGGLE so that each time you press the key the timer will change states and your function will either start or stop being called
Code:
def funcA():
timer1.setEnabled(viz.TOGGLE)
vizact.onkeydown('a',funcA)
def funcB():
timer2.setEnabled(viz.TOGGLE)
vizact.onkeydown('b',funcB)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| stopping a function | durf | Vizard | 1 | 03-31-2009 05:45 PM |
| stopping a goto() | vsully | Vizard | 1 | 01-24-2006 02:43 PM |
| partially stopping tracking | vsully | Vizard | 1 | 01-12-2005 10:02 AM |