Hi to all. I have a gtk.Textview and i want to make text find and selecting this text in this textview. I have this code but, it's not true.
search_str = self.text_to_find.get_text()
start_iter = textbuffer.get_start_iter()
match_start = textbuffer.get_start_iter()
match_end = textbuffer.get_end_iter()
found = start_iter.forward_search(search_str,0, None)
if found:
textbuffer.select_range(match_start,match_end)
If text found, then selecting all text in textview, but i need selecting of only found text.
Thank you.