|  | 
| 
			 
			#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) | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
| 
 | 
 | 
|  Similar Threads | ||||
| 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 |