Adjust the end of the selection in tagOrId nearest to index so that it is at index, and make the other end the anchor point for future select_to() calls. If the selection is not currently in tagOrId, this behaves like select_to().
tkinter/Canvas.select_adjust
Canvas.select_adjust