Return the integer index value corresponding to index, or None if index is out of range. If index is 'end', the result is a count of the number of items in the listbox (not the index of the last item).
tkinter/Listbox.index
Listbox.index