I've resolved my previous issues. Now, when my text is inserted it becomes bold from the word I need to the very END of the whole text. How do I highlight only the word?
self.text.insert('1.0', text)
self.text.grid()
tag_pos = self.text.search(word, '1.0')
self.text.tag_add('bold', tag_pos, END)
self.text.tag_configure('bold', font='TkDefaultFont 9 bold')
"self.text.tag_add('bold', tag_pos, END)" needs END to be the ending index of the word.
How do I retrieve it?