Return sections for configSet configType configuration. configSet must be either 'user' or 'default' configType must be in self.config_types.
(self, configSet, configType)
| 257 | self.userCfg[configType].SetOption(section, option, value) |
| 258 | |
| 259 | def GetSectionList(self, configSet, configType): |
| 260 | """Return sections for configSet configType configuration. |
| 261 | |
| 262 | configSet must be either 'user' or 'default' |
| 263 | configType must be in self.config_types. |
| 264 | """ |
| 265 | if not (configType in self.config_types): |
| 266 | raise InvalidConfigType('Invalid configType specified') |
| 267 | if configSet == 'user': |
| 268 | cfgParser = self.userCfg[configType] |
| 269 | elif configSet == 'default': |
| 270 | cfgParser=self.defaultCfg[configType] |
| 271 | else: |
| 272 | raise InvalidConfigSet('Invalid configSet specified') |
| 273 | return cfgParser.sections() |
| 274 | |
| 275 | def GetHighlight(self, theme, element): |
| 276 | """Return dict of theme element highlight colors. |