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

Method update_highlight_colors

Lib/idlelib/codecontext.py:251–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

249 self.context['font'] = font
250
251 def update_highlight_colors(self):
252 if self.context is not None:
253 colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'context')
254 self.context['background'] = colors['background']
255 self.context['foreground'] = colors['foreground']
256
257 if self.cell00 is not None:
258 line_number_colors = idleConf.GetHighlight(idleConf.CurrentTheme(),
259 'linenumber')
260 self.cell00.config(bg=line_number_colors['background'])
261
262
263CodeContext.reload()

Callers 3

ResetColorizerMethod · 0.80
test_highlight_colorsMethod · 0.80

Calls 3

GetHighlightMethod · 0.80
CurrentThemeMethod · 0.80
configMethod · 0.45

Tested by 1

test_highlight_colorsMethod · 0.64