<vizact>.onmouseup

Registers a function to handle mouse up events

 

<vizact>.onmouseup(
    button    
    func    
    *args    

)

 

button

The mouse button to handle


func

The function to call when the mouse button is released


*args

The arguments to pass to the function


Remarks

This command will call the given function when the specified mouse button is released.

Return Value

None

Example

#Change background color when middle mouse button released
colors = vizact.choice([viz.RED,viz.WHITE,viz.BLUE])
vizact.onmouseup(viz.MOUSEBUTTON_MIDDLE,viz.clearcolor,colors)