Tkinter.Text.tag_nextrange

Text.tag_nextrange(tagName, index1, index2=None)[source]

Return a list of start and end index for the first sequence of characters between INDEX1 and INDEX2 which all have tag TAGNAME. The text is searched forward from INDEX1.