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

Method __init__

Lib/idlelib/sidebar.py:285–292  ·  view source on GitHub ↗
(self, editwin)

Source from the content-addressed store, hash-verified

283class LineNumbers(BaseSideBar):
284 """Line numbers support for editor windows."""
285 def __init__(self, editwin):
286 super().__init__(editwin)
287
288 end_line_delegator = EndLineDelegator(self.update_sidebar_text)
289 # Insert the delegator after the undo delegator, so that line numbers
290 # are properly updated after undo and redo actions.
291 self.editwin.per.insertfilterafter(end_line_delegator,
292 after=self.editwin.undo)
293
294 def init_widgets(self):
295 _padx, pady = get_widget_padding(self.text)

Callers

nothing calls this directly

Calls 4

superClass · 0.85
EndLineDelegatorClass · 0.85
insertfilterafterMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected