View Single Post
  #4  
Old 11-08-2004, 12:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

viz.waittime should only be used with director functions. If you use the command outside a director function then it affectly freezes the graphics engine for 5 seconds. The following code shows how to accomplish this with director functions:
Code:
def DisplayMessageAndQuit():
	endLabel.message("Thank you for your participation!")
	viz.waittime(5)
	viz.quit()
To trigger the director function simply do the following:
Code:
viz.director(DisplayMessageAndQuit)
Reply With Quote