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

Method ResetColorizer

Lib/idlelib/editor.py:796–807  ·  view source on GitHub ↗

Update the color theme

(self)

Source from the content-addressed store, hash-verified

794 self.color = None
795
796 def ResetColorizer(self):
797 "Update the color theme"
798 # Called from self.filename_change_hook and from configdialog.py
799 self._rmcolorizer()
800 self._addcolorizer()
801 EditorWindow.color_config(self.text)
802
803 if self.code_context is not None:
804 self.code_context.update_highlight_colors()
805
806 if self.line_numbers is not None:
807 self.line_numbers.update_colors()
808
809 IDENTCHARS = string.ascii_letters + string.digits + "_"
810

Callers 2

__init__Method · 0.95
filename_change_hookMethod · 0.95

Calls 4

_rmcolorizerMethod · 0.95
_addcolorizerMethod · 0.95
update_colorsMethod · 0.45

Tested by

no test coverage detected