Thread: onactionend
View Single Post
  #1  
Old 01-20-2008, 02:19 PM
johannes2 johannes2 is offline
Member
 
Join Date: Apr 2007
Posts: 7
onactionend

Hi,

moving to Vizard 3 from Vizard 2.5 onactionend seems to work differntly:
Old working code:

def onactionend(object,action):
if object == screenWall and action == viz.MOVE:
putGraphOnScreenWall()
viz.callback(viz.ACTION_END_EVENT,onactionend)

New code, not working yet:

def onactionend(e):
print 'end',e.object,e.action
if e.object is screenWall and e.action is viz.MOVE:
putGraphOnScreenWall()
viz.callback(viz.ACTION_END_EVENT,onactionend)

What to do?
Best,
Johannes
Reply With Quote