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

Method ResetColorizer

Lib/idlelib/pyshell.py:965–979  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

963 self.shell_sidebar.update_font()
964
965 def ResetColorizer(self):
966 super().ResetColorizer()
967
968 theme = idleConf.CurrentTheme()
969 tag_colors = {
970 "stdin": {'background': None, 'foreground': None},
971 "stdout": idleConf.GetHighlight(theme, "stdout"),
972 "stderr": idleConf.GetHighlight(theme, "stderr"),
973 "console": idleConf.GetHighlight(theme, "normal"),
974 }
975 for tag, tag_colors_config in tag_colors.items():
976 self.text.tag_configure(tag, **tag_colors_config)
977
978 if self.shell_sidebar is not None:
979 self.shell_sidebar.update_colors()
980
981 def replace_event(self, event):
982 replace.replace(self.text, insert_tags="stdin")

Callers 1

Calls 6

superClass · 0.85
CurrentThemeMethod · 0.80
GetHighlightMethod · 0.80
itemsMethod · 0.45
tag_configureMethod · 0.45
update_colorsMethod · 0.45

Tested by

no test coverage detected