/external/python/cpython3/Lib/idlelib/ |
D | runscript.py | 37 def __init__(self, editwin): argument 38 self.editwin = editwin 41 self.flist = self.editwin.flist 42 self.root = self.editwin.root 47 self.editwin.text_frame.bind('<<run-module-event-2>>', self._run_module_event) 50 if isinstance(self.editwin, outwin.OutputWindow): 51 self.editwin.text.bell() 69 self.editwin.gotoline(lineno) 75 self.editwin.gotoline(nag.get_lineno()) 91 editwin = self.editwin [all …]
|
D | format.py | 31 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 …]
|
D | parenmatch.py | 40 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(
|
D | squeezer.py | 100 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)
|
D | codecontext.py | 47 def __init__(self, editwin): argument 64 self.editwin = editwin 65 self.text = editwin.text 104 widgets = self.editwin.text, self.editwin.text_frame 110 if widget is self.editwin.text 116 self.editwin.text_frame, 131 self.cell00 = tkinter.Frame(self.editwin.text_frame, 143 self.editwin.update_menu_label(menu='options', index='* Code Context', 185 new_topvisible = self.editwin.getlineno("@0,0")
|
D | calltip.py | 20 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
|
D | iomenu.py | 112 def __init__(self, editwin): argument 113 self.editwin = editwin 114 self.text = editwin.text 132 self.editwin = None 137 return self.editwin.get_saved() 140 self.editwin.set_saved(flag) 143 self.editwin.reset_undo() 165 flist = self.editwin.flist 180 if (self.editwin and 181 not getattr(self.editwin, 'interp', None) and [all …]
|
D | sidebar.py | 47 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 …]
|
D | zoomheight.py | 17 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',
|
D | hyperparser.py | 26 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))
|
D | autocomplete.py | 33 def __init__(self, editwin=None): argument 34 self.editwin = editwin 35 if editwin is not None: # not in subprocess or no-gui test 36 self.text = editwin.text 106 hp = HyperParser(self.editwin, "insert") 166 rpcclt = self.editwin.flist.pyshell.interp.rpcclt
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_squeezer.py | 87 editwin = NonCallableMagicMock() 88 editwin.width = 80 91 editwin.root = get_test_tk_root(self) 92 text_widget = self.make_text_widget(root=editwin.root) 93 editwin.text = editwin.per.bottom = text_widget 95 return editwin 120 editwin = self.make_mock_editor_window() 121 squeezer = self.make_squeezer_instance(editwin) 137 with patch.object(editwin, 'width', line_width): 142 editwin = self.make_mock_editor_window() [all …]
|
D | test_iomenu.py | 17 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
|
D | test_zoomheight.py | 18 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/ |
D | ScriptBinding.py | 50 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 …]
|
D | RstripExtension.py | 8 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
|
D | ParenMatch.py | 59 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(
|
D | CodeContext.py | 34 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)
|
D | CallTips.py | 26 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
|
D | HyperParser.py | 14 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))
|
D | IOBinding.py | 146 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 …]
|
D | ZoomHeight.py | 16 def __init__(self, editwin): argument 17 self.editwin = editwin 20 top = self.editwin.top
|
D | AutoComplete.py | 41 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
|
D | FormatParagraph.py | 29 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/ |
D | test_parenmatch.py | 38 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)
|