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

Class DummyEditwin

Lib/idlelib/idle_test/test_codecontext.py:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38class DummyEditwin:
39 def __init__(self, root, frame, text):
40 self.root = root
41 self.top = root
42 self.text_frame = frame
43 self.text = text
44 self.label = ''
45
46 def getlineno(self, index):
47 return int(float(self.text.index(index)))
48
49 def update_menu_label(self, **kwargs):
50 self.label = kwargs['label']
51
52
53class CodeContextTest(unittest.TestCase):

Callers 1

setUpClassMethod · 0.70

Calls

no outgoing calls

Tested by 1

setUpClassMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…