<vizact>.onbuttonup

Registers a function to handle button up events

 

<vizact>.onbuttonup(
    button    
    func    
    *args    

)

 

button

The GUI object to handle


func

The function to call when the GUI object is released


*args

The arguments to pass to the function


Remarks

When the specified GUI object is released the given function will be called.

Return Value

None

Example

check = viz.add(viz.CHECKBOX)
ball = viz.add('ball.wrl')

#The checkbox will control the visibility of the ball
vizact.onbuttondown(check,ball.visible,viz.ON)
vizact.onbuttonup(check,ball.visible,viz.OFF)