parameters: (self)
docstring: Update the color theme
docstring_summary: Update the color theme
docstring_tokens: Update the color theme
function: def ResetColorizer(self):
          "Update the color theme"
          # Called from self.filename_change_hook and from configDialog.py
          self._rmcolorizer()
          self._addcolorizer()
          theme = idleConf.CurrentTheme()
          normal_colors = idleConf.GetHighlight(theme, 'normal')
          cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
          select_colors = idleConf.GetHighlight(theme, 'hilite')
          self.text.config(
              foreground=normal_colors['foreground'],
              background=normal_colors['background'],
              insertbackground=cursor_color,
              selectforeground=select_colors['foreground'],
              selectbackground=select_colors['background'],
              )
          if TkVersion >= 8.5:
              self.text.config(
                  inactiveselectbackground=select_colors['background'])
function_tokens: def ResetColorizer ( self ) : # Called from self.filename_change_hook and from configDialog.py self . _rmcolorizer ( ) self . _addcolorizer ( ) theme = idleConf . CurrentTheme ( ) normal_colors = idleConf . GetHighlight ( theme , 'normal' ) cursor_color = idleConf . GetHighlight ( theme , 'cursor' , fgBg = 'fg' ) select_colors = idleConf . GetHighlight ( theme , 'hilite' ) self . text . config ( foreground = normal_colors [ 'foreground' ] , background = normal_colors [ 'background' ] , insertbackground = cursor_color , selectforeground = select_colors [ 'foreground' ] , selectbackground = select_colors [ 'background' ] , ) if TkVersion >= 8.5 : self . text . config ( inactiveselectbackground = select_colors [ 'background' ] )