<viztip>.setDelay

Sets the delay time for the tooltip to appear

 

<viztip>.setDelay(
    value    

)

 

value

time in seconds


Remarks

This command will set the delay time, the time that elapses before the tooltip is displayed.

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

#Reduce the delay time
tip.setDelay(0.2)