(self, config_type, section)
Delete a section from self, userCfg, and file.

        Used to delete custom themes and keysets.
Delete a section from self, userCfg, and file.
Delete a section from self userCfg and file .
def delete_section(self, config_type, section):
        """Delete a section from self, userCfg, and file.

        Used to delete custom themes and keysets.
        """
        if section in self[config_type]:
            del self[config_type][section]
        configpage = idleConf.userCfg[config_type]
        configpage.remove_section(section)
        configpage.Save()
def delete_section ( self , config_type , section ) : if section in self [ config_type ] : del self [ config_type ] [ section ] configpage = idleConf . userCfg [ config_type ] configpage . remove_section ( section ) configpage . Save ( )