WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to use viztip ? (https://forum.worldviz.com/showthread.php?t=1699)

djdesmangles 11-05-2008 01:38 PM

How to use viztip ?
 
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:
Code:

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 !!!
 
Thanks a lot !!

D.


All times are GMT -7. The time now is 01:38 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC