Open topic with navigation
<node3d:GUI:droplist>.getItemCount
Returns the number of items in the droplist.
<node3d:GUI:droplist>.getItemCount() |
|
Remarks
This command will return the number of items in the droplist.
Return Value
The number of items in the droplist.
Example
droplist = viz.addDropList()
droplist.setPosition(.5,.5)
options = ['A','B','C','D']
droplist.addItems(options)
print(droplist.getItemCount()) #Returns 4