Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/idlelib/
Drunscript.py35 def __init__(self, editwin): argument
36 self.editwin = editwin
39 self.flist = self.editwin.flist
40 self.root = self.editwin.root
43 self.editwin.text_frame.bind('<<run-module-event-2>>', self._run_module_event)
62 self.editwin.gotoline(lineno)
68 self.editwin.gotoline(nag.get_lineno())
84 editwin = self.editwin
85 text = editwin.text
97 editwin.colorize_syntax_error(text, pos)
[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(
Dsqueezer.py102 self.editwin = editwin = squeezer.editwin
103 self.text = text = editwin.text
105 self.base_text = editwin.per.bottom
224 def __init__(self, editwin): argument
234 self.editwin = editwin
235 self.text = text = editwin.text
242 self.base_text = editwin.per.bottom
258 def mywrite(s, tags=(), write=editwin.write):
288 editwin.write = mywrite
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
60 hp = HyperParser(self.editwin, "insert")
91 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
Diomenu.py117 def __init__(self, editwin): argument
118 self.editwin = editwin
119 self.text = editwin.text
137 self.editwin = None
142 return self.editwin.get_saved()
145 self.editwin.set_saved(flag)
148 self.editwin.reset_undo()
170 flist = self.editwin.flist
185 if (self.editwin and
186 not getattr(self.editwin, 'interp', None) and
[all …]
Drstrip.py5 def __init__(self, editwin): argument
6 self.editwin = editwin
10 text = self.editwin.text
11 undo = self.editwin.undo
Dzoomheight.py11 def __init__(self, editwin): argument
12 self.editwin = editwin
15 top = self.editwin.top
18 self.editwin.update_menu_label(menu='options', index='* Height',
Dcodecontext.py48 def __init__(self, editwin): argument
66 self.editwin = editwin
67 self.text = editwin.text
105 widgets = self.editwin.text, self.editwin.text_frame
114 self.editwin.top, font=self.textfont,
124 before=self.editwin.text_frame)
130 self.editwin.update_menu_label(menu='options', index='* Code Context',
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.context_use_ps1:
39 for context in editwin.num_context_lines:
49 editwin._build_char_in_string_func(startatindex))
Dautocomplete.py30 def __init__(self, editwin=None): argument
31 self.editwin = editwin
32 if editwin is not None: # not in subprocess or test
33 self.text = editwin.text
116 hp = HyperParser(self.editwin, "insert")
176 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
Dparagraph.py24 def __init__(self, editwin): argument
25 self.editwin = editwin
33 self.editwin = None
48 text = self.editwin.text
49 first, last = self.editwin.get_selection_indices()
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_squeezer.py93 editwin = NonCallableMagicMock()
96 editwin.__class__ = PyShell
99 editwin.root = get_test_tk_root(self)
100 text_widget = self.make_text_widget(root=editwin.root)
101 editwin.text = editwin.per.bottom = text_widget
103 return editwin
129 editwin = self.make_mock_editor_window()
130 squeezer = self.make_squeezer_instance(editwin)
151 editwin = self.make_mock_editor_window()
152 squeezer = self.make_squeezer_instance(editwin)
[all …]
Dtest_iomenu.py18 cls.editwin = EditorWindow(root=cls.root)
22 cls.editwin._close()
23 del cls.editwin
31 io = iomenu.IOBinding(self.editwin)
32 self.assertIs(io.editwin, self.editwin)
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)
/external/python/cpython2/Lib/idlelib/
DScriptBinding.py50 def __init__(self, editwin): argument
51 self.editwin = editwin
54 self.flist = self.editwin.flist
55 self.root = self.editwin.root
58 self.editwin.text_frame.bind('<<run-module-event-2>>', self._run_module_event)
75 self.editwin.gotoline(lineno)
81 self.editwin.gotoline(nag.get_lineno())
97 text = self.editwin.text
119 text = self.editwin.text
180 self.editwin.text_frame.after(200,
[all …]
DParenMatch.py59 def __init__(self, editwin): argument
60 self.editwin = editwin
61 self.text = editwin.text
65 editwin.text.bind(self.RESTORE_VIRTUAL_EVENT_NAME,
93 indices = (HyperParser(self.editwin, "insert")
107 hp = HyperParser(self.editwin, "insert-1c")
163 self.editwin.text_frame.after(CHECK_DELAY, callme, callme)
164 self.editwin.text_frame.after(CHECK_DELAY, callme, callme)
171 self.editwin.text_frame.after(
DRstripExtension.py8 def __init__(self, editwin): argument
9 self.editwin = editwin
10 self.editwin.text.bind("<<do-rstrip>>", self.do_rstrip)
14 text = self.editwin.text
15 undo = self.editwin.undo
DCodeContext.py34 def __init__(self, editwin): argument
35 self.editwin = editwin
36 self.text = editwin.text
50 self.editwin.setvar('<<toggle-code-context>>', True)
62 widgets = self.editwin.text, self.editwin.text_frame
72 self.label = Tkinter.Label(self.editwin.top,
83 before=self.editwin.text_frame)
DCallTips.py26 def __init__(self, editwin=None): argument
27 if editwin is None: # subprocess and test
28 self.editwin = None
30 self.editwin = editwin
31 self.text = editwin.text
70 hp = HyperParser(self.editwin, "insert")
99 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
DHyperParser.py14 def __init__(self, editwin, index): argument
17 self.editwin = editwin
18 self.text = text = editwin.text
20 parser = PyParse.Parser(editwin.indentwidth, editwin.tabwidth)
26 if not editwin.context_use_ps1:
27 for context in editwin.num_context_lines:
37 editwin._build_char_in_string_func(startatindex))
DIOBinding.py146 def __init__(self, editwin): argument
147 self.editwin = editwin
148 self.text = editwin.text
166 self.editwin = None
171 return self.editwin.get_saved()
174 self.editwin.set_saved(flag)
177 self.editwin.reset_undo()
199 flist = self.editwin.flist
214 if (self.editwin and
215 not getattr(self.editwin, 'interp', None) and
[all …]
DZoomHeight.py16 def __init__(self, editwin): argument
17 self.editwin = editwin
20 top = self.editwin.top
DAutoComplete.py41 def __init__(self, editwin=None): argument
42 self.editwin = editwin
43 if editwin is None: # subprocess and test
45 self.text = editwin.text
123 hp = HyperParser(self.editwin, "insert")
176 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
DFormatParagraph.py29 def __init__(self, editwin): argument
30 self.editwin = editwin
33 self.editwin = None
52 text = self.editwin.text
53 first, last = self.editwin.get_selection_indices()
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_parenmatch.py38 cls.editwin = DummyEditwin(cls.text)
39 cls.editwin.text_frame = Mock()
43 del cls.text, cls.editwin
55 pm = ParenMatch(self.editwin)
78 pm = ParenMatch(self.editwin)
98 pm = ParenMatch(self.editwin)
111 pm = ParenMatch(self.editwin)

12