If index is omitted, return a tuple of the names of all tags defined in the widget; otherwise return only the names of the tags applied to the character at index. The names are ordered from lowest to highest priority.
tkinter/Text.tag_names
Text.tag_names