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

Method update_colors

Lib/idlelib/sidebar.py:320–329  ·  view source on GitHub ↗

Update the sidebar text colors, usually after config changes.

(self)

Source from the content-addressed store, hash-verified

318 self.sidebar_text['font'] = font
319
320 def update_colors(self):
321 """Update the sidebar text colors, usually after config changes."""
322 colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'linenumber')
323 foreground = colors['foreground']
324 background = colors['background']
325 self.sidebar_text.config(
326 fg=foreground, bg=background,
327 selectforeground=foreground, selectbackground=background,
328 inactiveselectbackground=background,
329 )
330
331 def update_sidebar_text(self, end):
332 """

Callers

nothing calls this directly

Calls 3

GetHighlightMethod · 0.80
CurrentThemeMethod · 0.80
configMethod · 0.45

Tested by

no test coverage detected