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

Method update_colors

Lib/idlelib/sidebar.py:505–513  ·  view source on GitHub ↗

Update the sidebar text colors, usually after config changes.

(self)

Source from the content-addressed store, hash-verified

503 self.change_callback()
504
505 def update_colors(self):
506 """Update the sidebar text colors, usually after config changes."""
507 linenumbers_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'linenumber')
508 prompt_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'console')
509 foreground = prompt_colors['foreground']
510 background = linenumbers_colors['background']
511 self.colors = (foreground, background)
512 self.canvas.configure(background=background)
513 self.change_callback()
514
515
516def _sidebar_number_scrolling(parent): # htest #

Callers

nothing calls this directly

Calls 4

change_callbackMethod · 0.95
GetHighlightMethod · 0.80
CurrentThemeMethod · 0.80
configureMethod · 0.45

Tested by

no test coverage detected