示例#1
0
 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
示例#2
0
 def find_selection_event(self, event=None):
     """Perform find selection operation."""
     SearchDialog.find_selection(self)
     return 'break'
示例#3
0
文件: gui.py 项目: Zeffar/Elobot
 def find_selection_event(self, event=None):
     """Perform find selection operation."""
     SearchDialog.find_selection(self)
     return "break"