<node3d:GUI:droplist>.getSelection
Returns the index of the selected element.
| <node3d:GUI:droplist>.getSelection() | |
Remarks
This command will return the zero-based index of the currently selected item.
Return Value
The index of the selected element.
Example
list = viz.addDropList()
list.setPosition(.5,.5)
options = ['A','B','C','D']
list.addItems(options)
list.select(2)
print list.getSelection() #Returns 2