(self, widget)
Update colour pickers
Update colour pickers
Update colour pickers
def on_use_theme_colors_checkbutton_toggled(self, widget):
        """Update colour pickers"""
        guiget = self.builder.get_object
        active = widget.get_active()

        scheme = guiget('color_scheme_combobox')
        fore = guiget('foreground_colorbutton')
        back = guiget('background_colorbutton')

        if active:
            for widget in [scheme, fore, back]:
                widget.set_sensitive(False)
        else:
            scheme.set_sensitive(True)
            self.on_color_scheme_combobox_changed(scheme)

        self.config['use_theme_colors'] = active
        self.config.save()
def on_use_theme_colors_checkbutton_toggled ( self , widget ) : guiget = self . builder . get_object active = widget . get_active ( ) scheme = guiget ( 'color_scheme_combobox' ) fore = guiget ( 'foreground_colorbutton' ) back = guiget ( 'background_colorbutton' ) if active : for widget in [ scheme , fore , back ] : widget . set_sensitive ( False ) else : scheme . set_sensitive ( True ) self . on_color_scheme_combobox_changed ( scheme ) self . config [ 'use_theme_colors' ] = active self . config . save ( )