View Single Post
  #1  
Old 12-22-2006, 10:27 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
STOP_EVENT format

This code works in Viz2:

def FinishedMoving(object,type):
if type == viz.MOVE:
i = 1

viz.callback(viz.STOP_EVENT,FinishedMoving)

but Viz 3 gives this error:

TypeError: FinishedMoving() takes exactly 2 arguments (1 given)

What modification is required to make it work in Viz3?
Reply With Quote