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

Method color_breakpoint_text

Lib/idlelib/pyshell.py:155–165  ·  view source on GitHub ↗

Turn colorizing of breakpoint text on or off

(self, color=True)

Source from the content-addressed store, hash-verified

153 ]
154
155 def color_breakpoint_text(self, color=True):
156 "Turn colorizing of breakpoint text on or off"
157 if self.io is None:
158 # possible due to update in restore_file_breaks
159 return
160 if color:
161 theme = idleConf.CurrentTheme()
162 cfg = idleConf.GetHighlight(theme, "break")
163 else:
164 cfg = {'foreground': '', 'background': ''}
165 self.text.tag_config('BREAK', cfg)
166
167 def set_breakpoint(self, lineno):
168 text = self.text

Callers 1

__init__Method · 0.95

Calls 2

CurrentThemeMethod · 0.80
GetHighlightMethod · 0.80

Tested by

no test coverage detected