Lines Matching refs:editwin
85 editwin = NonCallableMagicMock()
86 editwin.width = 80
89 editwin.root = get_test_tk_root(self)
90 text_widget = self.make_text_widget(root=editwin.root)
91 editwin.text = editwin.per.bottom = text_widget
93 return editwin
118 editwin = self.make_mock_editor_window()
119 squeezer = self.make_squeezer_instance(editwin)
135 with patch.object(editwin, 'width', line_width):
140 editwin = self.make_mock_editor_window()
141 squeezer = self.make_squeezer_instance(editwin)
142 self.assertIs(squeezer.editwin, editwin)
147 editwin = self.make_mock_editor_window()
149 editwin.write = orig_write = Mock(return_value=SENTINEL_VALUE)
150 squeezer = self.make_squeezer_instance(editwin)
152 self.assertEqual(squeezer.editwin.write(text, ()), SENTINEL_VALUE)
160 editwin = self.make_mock_editor_window()
161 editwin.write.return_value = SENTINEL_VALUE
162 orig_write = editwin.write
163 squeezer = self.make_squeezer_instance(editwin)
165 self.assertEqual(squeezer.editwin.write(text, "stderr"),
173 editwin = self.make_mock_editor_window()
176 editwin.write = orig_write = Mock(return_value=SENTINEL_VALUE)
177 squeezer = self.make_squeezer_instance(editwin)
180 self.assertEqual(squeezer.editwin.write(text, "stdout"),
187 editwin.write = orig_write = Mock(return_value=SENTINEL_VALUE)
188 squeezer = self.make_squeezer_instance(editwin)
191 self.assertEqual(squeezer.editwin.write(text, "stdout"), None)
197 editwin = self.make_mock_editor_window(with_text_widget=True)
198 text_widget = editwin.text
199 squeezer = self.make_squeezer_instance(editwin)
203 editwin.write('TEXT\n'*6, "stdout")
211 editwin = self.make_mock_editor_window(with_text_widget=True)
212 text_widget = editwin.text
213 squeezer = self.make_squeezer_instance(editwin)
238 editwin = self.make_mock_editor_window(with_text_widget=True)
239 text_widget = editwin.text
240 squeezer = self.make_squeezer_instance(editwin)
258 editwin = self.make_mock_editor_window(with_text_widget=True)
259 text_widget = editwin.text
260 squeezer = self.make_squeezer_instance(editwin)
284 editwin = self.make_mock_editor_window(with_text_widget=True)
285 squeezer = self.make_squeezer_instance(editwin)
312 squeezer.editwin.text = Text(root)
313 squeezer.editwin.per = Percolator(squeezer.editwin.text)
314 self.addCleanup(squeezer.editwin.per.close)
324 text_widget = squeezer.editwin.text
356 text_widget = squeezer.editwin.text