Vizard 8 » Command Index » Vizard modules » viztip » <viztip>.ToolTip
8.1

<viztip>.ToolTip

Creates a tooltip object

<viztip>.ToolTip(  
start = True  
delay = 0.5  
track = True  
textName = 'tooltip'  
draworder = 9  
)  
start = True
Turns the tooltip on or off.
delay = 0.5
Sets the delay time for the tooltip to appear.
track = True
Sets whether the tooltip will track the mouse position.
textName = 'tooltip'
Sets name of variable that will be used to retrieve tooltip text from objects.
draworder = 9

Remarks

The viztip module allows you to assign a tooltip attribute to any node object that contains the tooltip text. Once you create an instance of the viztip.ToolTip object it will automatically display an on-screen tooltip when the mouse is over the node.

Return Value

ToolTip object

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()