PyCListBox.GetCaretIndex

int = GetCaretIndex()

Returns the index of the item which has focus.

Return Value

The zero-based index of the item that has the focus rectangle in a list box. If the list box is a single-selection list box, the return value is the index of the item that is selected, if any.