Lib/idlelib/configdialog.py
def on_new_colour_set(self):
        "Display sample of new color selection on the dialog."
        new_colour=self.colour.get()
        self.frame_colour_set.config(bg=new_colour)  # Set sample.
        plane ='foreground' if self.fg_bg_toggle.get() else 'background'
        sample_element = self.theme_elements[self.highlight_target.get()][0]
        self.text_highlight_sample.tag_config(sample_element, **{plane:new_colour})
        theme = self.custom_theme.get()
        theme_element = sample_element + '-' + plane
        changes.add_option('highlight', theme, theme_element, new_colour)
Display sample of new color selection on the dialog.
Display sample of new color selection on the dialog.
Display sample of new color selection on the dialog .
def on_new_colour_set(self):
        new_colour=self.colour.get()
        self.frame_colour_set.config(bg=new_colour)  
        plane ='foreground' if self.fg_bg_toggle.get() else 'background'
        sample_element = self.theme_elements[self.highlight_target.get()][0]
        self.text_highlight_sample.tag_config(sample_element, **{plane:new_colour})
        theme = self.custom_theme.get()
        theme_element = sample_element + '-' + plane
        changes.add_option('highlight', theme, theme_element, new_colour)
def on_new_colour_set ( self ) : new_colour = self . colour . get ( ) self . frame_colour_set . config ( bg = new_colour ) plane = 'foreground' if self . fg_bg_toggle . get ( ) else 'background' sample_element = self . theme_elements [ self . highlight_target . get ( ) ] [ 0 ] self . text_highlight_sample . tag_config ( sample_element , ** { plane : new_colour } ) theme = self . custom_theme . get ( ) theme_element = sample_element + '-' + plane changes . add_option ( 'highlight' , theme , theme_element , new_colour )
Display sample of new color selection on the dialog.
Display sample of new color selection on the dialog .
"Display sample of new color selection on the dialog." # Set sample.
self