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?
|