def search_text(self): select = self.text_edit.tag_ranges("sel") if not select: messagebox.showerror('Selection Error', 'word is not selected.') else: search.find_selection(self.text_edit) pass
def find_selection_event(self, event=None): """Perform find selection operation.""" SearchDialog.find_selection(self) return 'break'
def find_selection_event(self, event=None): """Perform find selection operation.""" SearchDialog.find_selection(self) return "break"