WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-08-2009, 12:14 PM
durf durf is offline
Member
 
Join Date: Feb 2009
Posts: 61
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)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 07:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC