![]() |
#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) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
stopping a function | durf | Vizard | 1 | 03-31-2009 04:45 PM |
stopping a goto() | vsully | Vizard | 1 | 01-24-2006 01:43 PM |
partially stopping tracking | vsully | Vizard | 1 | 01-12-2005 09:02 AM |