<viztip>.setTrack
Sets tooltip tracking on or off
)
value
This can be set to True or False.
Remarks
This command sets whether the tooltip will track the mouse position. When set to True the tooltip will track the mouse while it moves above an object. When set to False the tooltip will remain where it first appeared.
Return Value
None
Example
import viz
viz.go()
viz.add('tut_ground.wrl')
#Create models with tooltip text
ball1 = viz.add('ball.wrl',pos=(-2,1,5))
ball1.tooltip = 'Ball 1'
ball2 = viz.add('ball.wrl',pos=(0,1,5))
ball2.tooltip = 'Ball 2'
ball3 = viz.add('ball.wrl',pos=(2,1,5))
ball3.tooltip = 'Ball 3'
#Create a tool tip object
import viztip
tip = viztip.ToolTip()
tip.setTrack(False)