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)