Set the mark named markName to the position just before the character at index, creating the mark if it does not already exist. A mark created this way has right gravity by default.
tkinter/Text.mark_set
Text.mark_set