How to search for whole words in a text widget?
This Helped Meidx = self.search(word, idx,forwards=0,backwards=0,stopindex="end")
The argument
forwards means to accept characters forward in search.
The backwards
argument is just opposite.
Making them false helped me
Thanks