![]() |
|
#1
|
|||
|
|||
|
stopping ontimer
My program runs on onkeydown() that are assigned to different def func:. When i switch from func A to func B. A is still running. The reason is I think is becuase of the ontimers that I have associated with it. So is there anyway to stop and ontimer? Any other suggestions to handle this problem?
Code:
def funcA():
def calculate():
#CODE
vizact.ontimer2(0,viz.FOREVER,calculate)
vizact.onkeydown('a',funcA)
def funcB():
def speed():
#CODE
vizact.ontimer2(0,viz.FOREVER,speed)
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 |