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

Method __init__

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

Source from the content-addressed store, hash-verified

67class BaseSideBar:
68 """A base class for sidebars using Text."""
69 def __init__(self, editwin):
70 self.editwin = editwin
71 self.parent = editwin.text_frame
72 self.text = editwin.text
73
74 self.is_shown = False
75
76 self.main_widget = self.init_widgets()
77
78 self.bind_events()
79
80 self.update_font()
81 self.update_colors()
82
83 def init_widgets(self):
84 """Initialize the sidebar's widgets, returning the main widget."""

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 4

init_widgetsMethod · 0.95
bind_eventsMethod · 0.95
update_fontMethod · 0.95
update_colorsMethod · 0.95

Tested by

no test coverage detected