Exemplo n.º 1
0
 def find_event(self, event=None):
     """Perform find operation."""
     if not self.tag_ranges("sel"):
         found = self.tag_ranges("found")
         if found:
             self.tag_add("sel", found[0], found[1])
         else:
             self.tag_add("sel", "1.0", "1.0+1c")
     SearchDialog.find(self)
     return "break"
Exemplo n.º 2
0
 def find_event(self, event=None):
     """Perform find operation."""
     if not self.tag_ranges('sel'):
         found = self.tag_ranges('found')
         if found:
             self.tag_add('sel', found[0], found[1])
         else:
             self.tag_add('sel', '1.0', '1.0+1c')
     SearchDialog.find(self)
     return 'break'
Exemplo n.º 3
0
Arquivo: gui.py Projeto: Zeffar/Elobot
 def find_event(self, event=None):
     """Perform find operation."""
     if not self.tag_ranges("sel"):
         found = self.tag_ranges("found")
         if found:
             self.tag_add("sel", found[0], found[1])
         else:
             self.tag_add("sel", "1.0", "1.0+1c")
     SearchDialog.find(self)
     return "break"