Select all of the items in the range from first to last inclusive, without affecting the selection state of items outside that range. select_set() is an alias of selection_set().
tkinter/Listbox.selection_set
Listbox.selection_set