'Save configuration changes to the user config file.'

def SaveAllChangedConfigs(self):

    idleConf.userCfg['main'].Save()
    for configType in self.changedItems.keys():
        cfgTypeHasChanges = False
        for section in self.changedItems[configType].keys():
            if (section == 'HelpFiles'):
                idleConf.userCfg['main'].remove_section('HelpFiles')
                cfgTypeHasChanges = True
            for item in self.changedItems[configType][section].keys():
                value = self.changedItems[configType][section][item]
                if self.SetUserValue(configType, section, item, value):
                    cfgTypeHasChanges = True
        if cfgTypeHasChanges:
            idleConf.userCfg[configType].Save()
    for configType in ['keys', 'highlight']:
        idleConf.userCfg[configType].Save()
    self.ResetChangedItems()
