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

Method __init__

Lib/idlelib/pyshell.py:126–144  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

124 "Regular text edit window in IDLE, supports breakpoints"
125
126 def __init__(self, *args):
127 self.breakpoints = []
128 EditorWindow.__init__(self, *args)
129 self.text.bind("<<set-breakpoint>>", self.set_breakpoint_event)
130 self.text.bind("<<clear-breakpoint>>", self.clear_breakpoint_event)
131 self.text.bind("<<open-python-shell>>", self.flist.open_shell)
132
133 #TODO: don't read/write this from/to .idlerc when testing
134 self.breakpointPath = os.path.join(
135 idleConf.userdir, 'breakpoints.lst')
136 # whenever a file is changed, restore breakpoints
137 def filename_changed_hook(old_hook=self.io.filename_change_hook,
138 self=self):
139 self.restore_file_breaks()
140 old_hook()
141 self.io.set_filename_change_hook(filename_changed_hook)
142 if self.io.filename:
143 self.restore_file_breaks()
144 self.color_breakpoint_text()
145
146 rmenu_specs = [
147 ("Cut", "<<cut>>", "rmenu_check_cut"),

Callers

nothing calls this directly

Calls 6

restore_file_breaksMethod · 0.95
color_breakpoint_textMethod · 0.95
__init__Method · 0.45
bindMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected