<vizact>.ontextbox

Register a function to handle events from a textbox

 

<vizact>.ontextbox(
    textbox    
    func    
    *args    

)

 

textbox

The textbox object to handle


func

The function to call when a key is entered in the textbox


*args

The arguments to pass to the function


Remarks

The function will be called when a key is typed inside the textbox. The first argument passed to the callback func is an event object for the viz.TEXTBOX_EVENT.

Return Value

An EventFunction object

Example

textbox = viz.addTextbox()
def textChanged(e):
    print e.newText
vizact.ontextbox( textbox, textChanged )