Vizard 8 » Command Index » Vizard objects » node3d » <node3d:GUI:button>.get
8.0

<node3d:GUI:button>.get

This action will return the current state of the Button or Checkbox

<node3d:GUI:button>.get()  

Remarks

This action will return whether the Button or Checkbox is down or up.

Return Value

viz.DOWN or viz.UP

Example

button = viz.addButton()
.
.
.
if button.get() == viz.DOWN:
    print('The button is currently down')
else:
    print('The button is currently up')

See also

<node3d:GUI:button>.set