selected_index property

selected_index property

The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.

Definition:

@property
def selected_index(self):
    ...
@selected_index.setter
def selected_index(self, value):
    ...

See Also