PDA

View Full Version : How to use viztip ?


djdesmangles
11-05-2008, 01:38 PM
Hello Wizards,

I would like to know how to use viztip module...

Thanks !!
viz.FOREVER !!!
D.

farshizzo
11-05-2008, 05:31 PM
The viztip module allows you to assign a tooltip attribute to any node object that contains the tooltip text. Then you just need to create an instance of the viztip.ToolTip object and it will automatically display an on-screen tooltip when the mouse is over the node. Here is a small sample script: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()

djdesmangles
11-06-2008, 08:58 AM
Thanks a lot !!

D.