<node3d:GUI:buttonlabel>.get

Tells the button state at the time of calling.

 

<node3d:GUI:buttonlabel>.get()

 

Remarks

This command will return the current state of the button, which can be either viz.DOWN or viz.UP

Return Value

viz.DOWN or viz.UP

Example

list = viz.addButtonLabel("Hello there Bob-O")
list.setPosition(.5,.5)

def myFunction():
    if list.get():
        print "The button is down"
    else:
        print "The button is up"

vizact.ontimer(1,myFunction)