Home
last modified time | relevance | path

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

12

/external/python/cpython3/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 …]
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(
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
212 def __init__(self, editwin): argument
222 self.editwin = editwin
223 self.text = text = editwin.text
230 self.base_text = editwin.per.bottom
243 def mywrite(s, tags=(), write=editwin.write):
273 editwin.write = mywrite
286 return count_lines_with_wrapping(s, self.editwin.width)
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
Dcodecontext.py46 def __init__(self, editwin): argument
63 self.editwin = editwin
64 self.text = editwin.text
103 widgets = self.editwin.text, self.editwin.text_frame
109 if widget is self.editwin.text
115 self.editwin.text_frame,
130 self.cell00 = tkinter.Frame(self.editwin.text_frame,
142 self.editwin.update_menu_label(menu='options', index='* Code Context',
184 new_topvisible = self.editwin.getlineno("@0,0")
Dsidebar.py47 def __init__(self, editwin): argument
48 self.editwin = editwin
49 self.parent = editwin.text_frame
50 self.text = editwin.text
99 self.editwin.vbar.set(*args)
144 def __init__(self, editwin): argument
145 BaseSideBar.__init__(self, editwin)
162 end_line_delegator.setdelegate(self.editwin.undo.delegate)
163 self.editwin.undo.setdelegate(end_line_delegator)
166 delegator = self.editwin.per.top
[all …]
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',
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))
Dautocomplete.py34 def __init__(self, editwin=None): argument
35 self.editwin = editwin
36 if editwin is not None: # not in subprocess or no-gui test
37 self.text = editwin.text
107 hp = HyperParser(self.editwin, "insert")
167 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_squeezer.py86 editwin = NonCallableMagicMock()
87 editwin.width = 80
90 editwin.root = get_test_tk_root(self)
91 text_widget = self.make_text_widget(root=editwin.root)
92 editwin.text = editwin.per.bottom = text_widget
94 return editwin
119 editwin = self.make_mock_editor_window()
120 squeezer = self.make_squeezer_instance(editwin)
136 with patch.object(editwin, 'width', line_width):
141 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)
/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 …]
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
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(
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))
DZoomHeight.py16 def __init__(self, editwin): argument
17 self.editwin = editwin
20 top = self.editwin.top
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 …]
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