<viztip>.translate
Translate the tooltip
| <viztip>.translate( | |
| x |
| y = 0 |
)
x
y = 0
Remarks
This command translate the tooltip. It is initially aligned to the bottom left corner. 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)