def reset_to_default(self):
        """Restore initial values for default color schemes."""
        # Checks that this is indeed a default scheme
        scheme = self.current_scheme
        names = self.get_option('names')
        if scheme in names:
            for key in syntaxhighlighters.COLOR_SCHEME_KEYS:
                option = "{0}/{1}".format(scheme, key)
                value = CONF.get_default(self.CONF_SECTION, option)
                self.set_option(option, value)

            self.load_from_conf()
def reset_to_default ( self ) : scheme = self . current_scheme names = self . get_option ( 'names' ) if scheme in names : for key in syntaxhighlighters . COLOR_SCHEME_KEYS : option = "{0}/{1}" . format ( scheme , key ) value = CONF . get_default ( self . CONF_SECTION , option ) self . set_option ( option , value ) self . load_from_conf ( )
Restore initial values for default color schemes.