Exemple #1
0
 def __init__(self, root, text):
     self.root = root
     self.top = root
     self.text = text
     self.fregion = format.FormatRegion(self)
     self.text.undo_block_start = mock.Mock()
     self.text.undo_block_stop = mock.Mock()
 def setUpClass(cls):
     requires('gui')
     cls.root = Tk()
     cls.root.withdraw()
     cls.text = Text(cls.root)
     cls.text.undo_block_start = mock.Mock()
     cls.text.undo_block_stop = mock.Mock()
     cls.editor = DummyEditwin(cls.root, cls.text)
     cls.formatter = ft.FormatRegion(cls.editor)