<vizact>.onslider

Register a function to handle events from a slider

 

<vizact>.onslider(
    slider    
    func    
    *args    

)

 

slider

The slider object to handle


func

The function to call when the slider position changes


*args

The arguments to pass to the function


Remarks

The function will be called when the slider is moved by the user. The first argument passed to the callback func is the slider position.

Return Value

None

Example

slider = viz.addSlider()
def sliderChanged( pos ):
    print pos
vizact.onslider( slider, sliderChanged )