Delete a section from self, userCfg, and file. Used to delete custom themes and keysets.
(self, config_type, section)
| 857 | return changed |
| 858 | |
| 859 | def delete_section(self, config_type, section): |
| 860 | """Delete a section from self, userCfg, and file. |
| 861 | |
| 862 | Used to delete custom themes and keysets. |
| 863 | """ |
| 864 | if section in self[config_type]: |
| 865 | del self[config_type][section] |
| 866 | configpage = idleConf.userCfg[config_type] |
| 867 | configpage.remove_section(section) |
| 868 | configpage.Save() |
| 869 | |
| 870 | def clear(self): |
| 871 | """Clear all 4 pages. |