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

<viztip>.message

Sets the tooltip message

<viztip>.message(  
value  
)  
value
The string to display.

Remarks

This command sets the tooltip message. The message will remain until the mouse moves over a tooltip object. If this is called when the mouse is over a tooltip object it will not be applied.

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.message('Move the mouse cursor over a ball')
tip.translate(275,50)