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

Class Dummy_editwin

Lib/idlelib/idle_test/test_sidebar.py:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class Dummy_editwin:
24 def __init__(self, text):
25 self.text = text
26 self.text_frame = self.text.master
27 self.per = Percolator(text)
28 self.undo = Delegator()
29 self.per.insertfilter(self.undo)
30
31 def setvar(self, name, value):
32 pass
33
34 def getlineno(self, index):
35 return int(float(self.text.index(index)))
36
37
38class LineNumbersTest(unittest.TestCase):

Callers 2

setUpClassMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpClassMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…