(self, section, opt)
return self.ext_userCfg.SetOption(section, name, value)
Return True if the configuration was added or changed.

        If the value is the same as the default, then remove it
        from user config file.
Return True if the configuration was added or changed.
Return True if the configuration was added or changed .
def set_extension_value(self, section, opt):
        """Return True if the configuration was added or changed.

        If the value is the same as the default, then remove it
        from user config file.
        """
        name = opt['name']
        default = opt['default']
        value = opt['var'].get().strip() or default
        opt['var'].set(value)
        # if self.defaultCfg.has_section(section):
        # Currently, always true; if not, indent to return.
        if (value == default):
            return self.ext_userCfg.RemoveOption(section, name)
        # Set the option.
        return self.ext_userCfg.SetOption(section, name, value)
def set_extension_value ( self , section , opt ) : name = opt [ 'name' ] default = opt [ 'default' ] value = opt [ 'var' ] . get ( ) . strip ( ) or default opt [ 'var' ] . set ( value ) # if self.defaultCfg.has_section(section): # Currently, always true; if not, indent to return. if ( value == default ) : return self . ext_userCfg . RemoveOption ( section , name ) # Set the option. return self . ext_userCfg . SetOption ( section , name , value )