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.select_set
Listbox.select_set