Thread: onactionend
View Single Post
  #3  
Old 02-12-2008, 02:35 AM
johannes2 johannes2 is offline
Member
 
Join Date: Apr 2007
Posts: 7
Thank you for being fast and sorry for beeing slow - too many other things right now

TypeError: onactionend() takes exactly 2 arguments (1 given)
** WARNING: <node>.goto will be deprecated in future versions of Vizard, use vizact.goto instead
TypeError: onactionend() takes exactly 2 arguments (1 given)

Sample Code:

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



graphOnWallFinished=0
def putGraphOnScreenWall():
	global graphBasket, graph1, graph2, graph3, graph4, graph5, graph6,graphOnWallFinished
	
	print 'adfasdf',screenWall.get(viz.POSITION)[1]
	if checkboxWall.get()==1 and screenWall.get(viz.POSITION)[1]==0:
			#moveDown=vizact.move(0,0,0,1)
			#screenWall.add(moveDown)
			graph4.graphWhat=graph1.graphWhat
			graph5.graphWhat=graph2.graphWhat
			graph6.graphWhat=graph3.graphWhat
			resetObjects()
			
			#make existing graphs invisible
			for graphInstance in graphBasket:
					graphInstance.coordinateShow=0
					graphInstance.showCoordinateSystem()
			#print '123213',graphBasket
			graphBasket=[]
			#print graphBasket
			graphBasket.append(graph4)
			graphBasket.append(graph5)
			graphBasket.append(graph6)
			for graphInstance in graphBasket:
				graphInstance.setLabelTextGraph(graphInstance.graphWhat)
				graphInstance.adjustCoordSys(3,1)
				graphInstance.adjustCoordSys(3,0)
				graphInstance.coordinateShow=1
				graphInstance.showCoordinateSystem()
			graphOnWallFinished=1
Reply With Quote