MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/idlelib/idle_test/mock_idle.py:43–46  ·  view source on GitHub ↗
(self, flist=None, filename=None, key=None, root=None,
                 text=None)

Source from the content-addressed store, hash-verified

41 '''Minimally imitate editor.EditorWindow class.
42 '''
43 def __init__(self, flist=None, filename=None, key=None, root=None,
44 text=None): # Allow real Text with mock Editor.
45 self.text = text or Text()
46 self.undo = UndoDelegator()
47
48 def get_selection_indices(self):
49 first = self.text.index('1.0')

Callers

nothing calls this directly

Calls 2

TextClass · 0.90
UndoDelegatorClass · 0.70

Tested by

no test coverage detected