Home
last modified time | relevance | path

Searched refs:editwin (Results 1 – 25 of 27) sorted by relevance

12

/third_party/python/Lib/idlelib/idle_test/
Dtest_squeezer.py85 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()
[all …]
Dtest_iomenu.py17 cls.editwin = EditorWindow(root=cls.root)
18 cls.io = iomenu.IOBinding(cls.editwin)
23 cls.editwin._close()
24 del cls.editwin
32 self.assertIs(self.io.editwin, self.editwin)
38 text = io.editwin.text
39 self.editwin.interp = None
41 del self.editwin.interp
Dtest_zoomheight.py18 cls.editwin = EditorWindow(root=cls.root)
22 cls.editwin._close()
30 zoom = zoomheight.ZoomHeight(self.editwin)
31 self.assertIs(zoom.editwin, self.editwin)
34 zoom = zoomheight.ZoomHeight(self.editwin)
Dtest_parenmatch.py30 cls.editwin = DummyEditwin(cls.text)
31 cls.editwin.text_frame = Mock()
35 del cls.text, cls.editwin
44 pm = ParenMatch(self.editwin)
Dtest_hyperparser.py43 cls.editwin = DummyEditwin(cls.text)
47 del cls.text, cls.editwin
56 self.editwin.prompt_last_line = '>>>'
62 return HyperParser(self.editwin, index)
74 self.editwin.prompt_last_line = ''
Dtest_codecontext.py115 eq(cc.editwin, ed)
153 eq(cc.editwin.label, 'Hide Code Context')
159 eq(cc.editwin.label, 'Show Code Context')
Dtest_sidebar.py54 cls.editwin = Dummy_editwin(cls.text)
55 cls.editwin.vbar = tk.Scrollbar(cls.text_frame)
59 cls.editwin.per.close()
62 del cls.text, cls.text_frame, cls.editwin, cls.root
65 self.linenumber = idlelib.sidebar.LineNumbers(self.editwin)
Dtest_zzdummy.py87 self.assertEqual(zz.editwin, self.editor)
Dtest_format.py217 self.assertEqual(instance.editwin, 'editor')
219 self.assertEqual(instance.editwin, None)
Dtest_autocomplete.py47 self.assertEqual(self.autocomplete.editwin, self.editor)
/third_party/python/Lib/idlelib/
Dformat.py31 def __init__(self, editwin): argument
32 self.editwin = editwin
40 self.editwin = None
55 text = self.editwin.text
56 first, last = self.editwin.get_selection_indices()
215 def __init__(self, editwin): argument
216 self.editwin = editwin
228 text = self.editwin.text
229 first, last = self.editwin.get_selection_indices()
251 text = self.editwin.text
[all …]
Drunscript.py38 def __init__(self, editwin): argument
39 self.editwin = editwin
42 self.flist = self.editwin.flist
43 self.root = self.editwin.root
49 if isinstance(self.editwin, outwin.OutputWindow):
50 self.editwin.text.bell()
68 self.editwin.gotoline(lineno)
74 self.editwin.gotoline(nag.get_lineno())
90 editwin = self.editwin
91 text = editwin.text
[all …]
Diomenu.py28 def __init__(self, editwin): argument
29 self.editwin = editwin
30 self.text = editwin.text
48 self.editwin = None
53 return self.editwin.get_saved()
56 self.editwin.set_saved(flag)
59 self.editwin.reset_undo()
81 flist = self.editwin.flist
96 if (self.editwin and
97 not getattr(self.editwin, 'interp', None) and
[all …]
Dsqueezer.py100 self.editwin = editwin = squeezer.editwin
101 self.text = text = editwin.text
103 self.base_text = editwin.per.bottom
166 self.editwin.on_squeezed_expand(index, self.s, self.tags)
214 def __init__(self, editwin): argument
224 self.editwin = editwin
225 self.text = text = editwin.text
232 self.base_text = editwin.per.bottom
245 def mywrite(s, tags=(), write=editwin.write):
275 editwin.write = mywrite
[all …]
Dparenmatch.py40 def __init__(self, editwin): argument
41 self.editwin = editwin
42 self.text = editwin.text
46 editwin.text.bind(self.RESTORE_VIRTUAL_EVENT_NAME,
78 indices = (HyperParser(self.editwin, "insert")
89 hp = HyperParser(self.editwin, "insert-1c")
165 self.editwin.text_frame.after(CHECK_DELAY, callme, callme)
166 self.editwin.text_frame.after(CHECK_DELAY, callme, callme)
173 self.editwin.text_frame.after(
Dcodecontext.py49 def __init__(self, editwin): argument
66 self.editwin = editwin
67 self.text = editwin.text
106 widgets = self.editwin.text, self.editwin.text_frame
112 if widget is self.editwin.text
118 self.editwin.text_frame,
133 self.cell00 = Frame(self.editwin.text_frame,
145 self.editwin.update_menu_label(menu='options', index='*ode*ontext',
187 new_topvisible = self.editwin.getlineno("@0,0")
Dcalltip.py20 def __init__(self, editwin=None): argument
21 if editwin is None: # subprocess and test
22 self.editwin = None
24 self.editwin = editwin
25 self.text = editwin.text
62 hp = HyperParser(self.editwin, "insert")
123 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
Dsidebar.py70 def __init__(self, editwin): argument
71 self.editwin = editwin
72 self.parent = editwin.text_frame
73 self.text = editwin.text
119 self.editwin.vbar.set(*args)
286 def __init__(self, editwin): argument
287 super().__init__(editwin)
292 self.editwin.per.insertfilterafter(end_line_delegator,
293 after=self.editwin.undo)
407 def __init__(self, editwin): argument
[all …]
Dzzdummy.py37 def __init__(self, editwin): argument
39 self.editwin = editwin
40 self.text = editwin.text
41 self.formatter = editwin.fregion
Dhyperparser.py26 def __init__(self, editwin, index): argument
29 self.editwin = editwin
30 self.text = text = editwin.text
32 parser = pyparse.Parser(editwin.indentwidth, editwin.tabwidth)
38 if not editwin.prompt_last_line:
39 for context in editwin.num_context_lines:
49 editwin._build_char_in_string_func(startatindex))
Dzoomheight.py17 def __init__(self, editwin): argument
18 self.editwin = editwin
19 self.top = self.editwin.top
28 self.editwin.update_menu_label(menu='options', index='* Height',
Dautocomplete.py40 def __init__(self, editwin=None, tags=None): argument
41 self.editwin = editwin
42 if editwin is not None: # not in subprocess or no-gui test
43 self.text = editwin.text
114 hp = HyperParser(self.editwin, "insert")
174 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
Dextend.txt20 `editwin', an EditorWindow instance. The extension cannot assume much
68 def __init__(self, editwin):
69 self.editwin = editwin
Dautoexpand.py22 def __init__(self, editwin): argument
23 self.text = editwin.text
Ddebugger.py367 for editwin in self.pyshell.flist.inversedict:
368 filename = editwin.io.filename
370 for lineno in editwin.breakpoints:

12