(self)
Set fg/bg toggle and color based on highlight tag target.

        Instance variables accessed:
            highlight_target

        Attributes updated:
            fg_on
            bg_on
            fg_bg_toggle

        Methods:
            set_color_sample

        Called from:
            var_changed_highlight_target
            load_theme_cfg
Set fg/bg toggle and color based on highlight tag target.
Set fg / bg toggle and color based on highlight tag target .
def set_highlight_target(self):
        """Set fg/bg toggle and color based on highlight tag target.

        Instance variables accessed:
            highlight_target

        Attributes updated:
            fg_on
            bg_on
            fg_bg_toggle

        Methods:
            set_color_sample

        Called from:
            var_changed_highlight_target
            load_theme_cfg
        """
        if self.highlight_target.get() == 'Cursor':  # bg not possible
            self.fg_on.state(('disabled',))
            self.bg_on.state(('disabled',))
            self.fg_bg_toggle.set(1)
        else:  # Both fg and bg can be set.
            self.fg_on.state(('!disabled',))
            self.bg_on.state(('!disabled',))
            self.fg_bg_toggle.set(1)
        self.set_color_sample()
def set_highlight_target ( self ) : if self . highlight_target . get ( ) == 'Cursor' : # bg not possible self . fg_on . state ( ( 'disabled' , ) ) self . bg_on . state ( ( 'disabled' , ) ) self . fg_bg_toggle . set ( 1 ) else : # Both fg and bg can be set. self . fg_on . state ( ( '!disabled' , ) ) self . bg_on . state ( ( '!disabled' , ) ) self . fg_bg_toggle . set ( 1 ) self . set_color_sample ( )