(self)
Update the sidebar text colors, usually after config changes.
Update the sidebar text colors, usually after config changes.
Update the sidebar text colors usually after config changes .
def update_colors(self):
        """Update the sidebar text colors, usually after config changes."""
        linenumbers_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'linenumber')
        prompt_colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'console')
        foreground = prompt_colors['foreground']
        background = linenumbers_colors['background']
        self.colors = (foreground, background)
        self.canvas.configure(background=background)
        self.change_callback()
def update_colors ( self ) : linenumbers_colors = idleConf . GetHighlight ( idleConf . CurrentTheme ( ) , 'linenumber' ) prompt_colors = idleConf . GetHighlight ( idleConf . CurrentTheme ( ) , 'console' ) foreground = prompt_colors [ 'foreground' ] background = linenumbers_colors [ 'background' ] self . colors = ( foreground , background ) self . canvas . configure ( background = background ) self . change_callback ( )