View Single Post
  #2  
Old 12-07-2007, 09:35 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
In Python, the result of dividing two integers will be another integer. Try the following in the interactive interpreter:
Code:
>>> 1/60
0
>>> 1/60.0
0.016666666666666666
>>> 1.0/60
0.016666666666666666
So your code is setting a timer to expire every 0 seconds, which will be every frame. You will need to do the following instead:
Code:
viz.starttimer(0,1/60.0,viz.FOREVER)
Reply With Quote