How to search for whole words in a text widget? How to search for whole words in a text widget? tkinter tkinter

How to search for whole words in a text widget?


This Helped Me
idx = 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