Exemplo n.º 1
0
 def setUpClass(cls):
     cls.root = Tk()
     cls.root.withdraw()
     se.tkMessageBox = Mbox
     cls.engine = se.SearchEngine(cls.root)
     cls.dialog = rd.ReplaceDialog(cls.root, cls.engine)
     cls.dialog.ok = Mock()
     cls.text = Text(cls.root)
     cls.text.undo_block_start = Mock()
     cls.text.undo_block_stop = Mock()
     cls.dialog.text = cls.text
Exemplo n.º 2
0
Arquivo: gui.py Projeto: moleculea/ess
 def replace_event(self, event=None):
     ReplaceDialog.replace(self)
     return "break"
Exemplo n.º 3
0
 def replace_event(self, event=None):
     ReplaceDialog.replace(self)
     return "break"
Exemplo n.º 4
0
 def replace_event(self, event=None):
     """Perform replace operation."""
     ReplaceDialog.replace(self)
     return "break"
 def replace_event(self, event):
     ReplaceDialog.replace(self.text)
     return 'break'