(self)
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_color_set(self):
        "Display sample of new color selection on the dialog."
        new_color = self.color.get()
        self.style.configure('frame_color_set.TFrame', background=new_color)
        plane = 'foreground' if self.fg_bg_toggle.get() else 'background'
        sample_element = self.theme_elements[self.highlight_target.get()][0]
        self.highlight_sample.tag_config(sample_element, **{plane: new_color})
        theme = self.custom_name.get()
        theme_element = sample_element + '-' + plane
        changes.add_option('highlight', theme, theme_element, new_color)
def on_new_color_set ( self ) : new_color = self . color . get ( ) self . style . configure ( 'frame_color_set.TFrame' , background = new_color ) plane = 'foreground' if self . fg_bg_toggle . get ( ) else 'background' sample_element = self . theme_elements [ self . highlight_target . get ( ) ] [ 0 ] self . highlight_sample . tag_config ( sample_element , * * { plane : new_color } ) theme = self . custom_name . get ( ) theme_element = sample_element + '-' + plane changes . add_option ( 'highlight' , theme , theme_element , new_color )