Lines Matching refs:text

28         cls.text = Text(cls.root)
29 cls.text.undo_block_start = Mock()
30 cls.text.undo_block_stop = Mock()
31 cls.dialog.text = cls.text
36 del cls.text, cls.dialog, cls.engine
41 self.text.insert('insert', 'This is a sample sTring')
53 self.text.delete('1.0', 'end')
62 text = self.text
72 # text found and replaced
76 equal(text.get('1.8', '1.12'), 'asdf')
79 text.mark_set('insert', '1.0')
83 equal(text.get('1.2', '1.7'), 'hello')
89 equal(text.get('1.23', '1.28'), 'world')
92 text.mark_set('insert', 'end')
93 text.insert('insert', '\nline42:')
94 before_text = text.get('1.0', 'end')
97 after_text = text.get('1.0', 'end')
101 text.mark_set('insert', '1.9')
105 equal(text.get('1.8'), 'i')
106 equal(text.get('2.1'), 'j')
108 equal(text.get('2.1'), 'j')
109 equal(text.get('1.8'), 'j')
110 before_text = text.get('1.0', 'end')
112 after_text = text.get('1.0', 'end')
115 # text not found
116 before_text = text.get('1.0', 'end')
119 after_text = text.get('1.0', 'end')
126 text = self.text
134 text.mark_set('insert', '1.4')
138 equal(text.get('1.2'), 'i')
139 equal(text.get('1.5'), 'j')
141 equal(text.get('1.2'), 'i')
142 equal(text.get('1.20'), 'j')
144 equal(text.get('1.2'), 'i')
147 text.mark_set('insert', '1.8')
149 before_text = text.get('1.0', 'end')
151 after_text = text.get('1.0', 'end')
155 text = self.text
165 equal(text.get('1.0', '1.4'), 'This')
166 equal(text.get('1.5', '1.10'), 'hello')
170 text = self.text
176 before_text = self.text.get('1.0', 'end')
180 after_text = self.text.get('1.0', 'end')
185 equal(text.get('1.0', '1.4'), 'that')
189 text = self.text
195 before_text = text.get('1.0', 'end')
199 after_text = text.get('1.0', 'end')
202 text.insert('insert', '\nline42')
204 equal(text.get('2.0', '2.8'), 'linhello')
230 text = self.text
236 text.insert('insert', '\nis as ')
241 equal(text.get('1.2', '1.4'), 'is')
242 equal(text.get('2.0', '2.3'), 'was')
244 equal(text.get('1.5', '1.8'), 'was')
246 equal(text.get('1.2', '1.5'), 'was')
249 text = self.text
254 text.insert('insert', '\n')
255 text.insert('insert', text.get('1.0', 'end')*100)
259 self.assertNotIn('is', text.get('1.0', 'end'))
272 pv.set('text which is not present')
277 text = self.text
286 equal(text.get('sel.first', 'sel.last'), 'was')