Lib/idlelib/configdialog.py
def delete_custom_theme(self):
        """Handle event to delete custom theme.

        The current theme is deactivated and the default theme is
        activated.  The custom theme is permanently removed from
        the config file.
        """
        theme_name = self.custom_theme.get()
        delmsg = 'Are you sure you wish to delete the theme %r ?'
        if not tkMessageBox.askyesno(
                'Delete Theme',  delmsg % theme_name, parent=self):
            return
        self.deactivate_current_config()
        # Remove theme from changes, config, and file.
        changes.delete_section('highlight')
        # Reload user theme list.
        item_list = idleConf.GetSectionList('user', 'highlight')
        item_list.sort()
        if not item_list:
            self.radio_theme_custom.config(state=DISABLED)
            self.opt_menu_theme_custom.SetMenu(item_list, '- no custom themes -')
        else:
            self.opt_menu_theme_custom.SetMenu(item_list, item_list[0])
        # Revert to default theme.
        self.is_builtin_theme.set(idleConf.defaultCfg['main'].Get('Theme', 'default'))
        self.builtin_theme.set(idleConf.defaultCfg['main'].Get('Theme', 'name'))
        # User can't back out of these changes, they must be applied now.
        changes.save_all()
        self.save_all_changed_extensions()
        self.activate_config_changes()
        self.set_theme_type()
Handle event to delete custom theme.

        The current theme is deactivated and the default theme is
        activated.  The custom theme is permanently removed from
        the config file.
        
Handle event to delete custom theme.
The current theme is deactivated and the default theme is
activated.  The custom theme is permanently removed from
the config file.
Handle event to delete custom theme . The current theme is deactivated and the default theme is activated . The custom theme is permanently removed from the config file .
def delete_custom_theme(self):
        theme_name = self.custom_theme.get()
        delmsg = 'Are you sure you wish to delete the theme %r ?'
        if not tkMessageBox.askyesno(
                'Delete Theme',  delmsg % theme_name, parent=self):
            return
        self.deactivate_current_config()
        changes.delete_section('highlight')
        item_list = idleConf.GetSectionList('user', 'highlight')
        item_list.sort()
        if not item_list:
            self.radio_theme_custom.config(state=DISABLED)
            self.opt_menu_theme_custom.SetMenu(item_list, '- no custom themes -')
        else:
            self.opt_menu_theme_custom.SetMenu(item_list, item_list[0])
        self.is_builtin_theme.set(idleConf.defaultCfg['main'].Get('Theme', 'default'))
        self.builtin_theme.set(idleConf.defaultCfg['main'].Get('Theme', 'name'))
        changes.save_all()
        self.save_all_changed_extensions()
        self.activate_config_changes()
        self.set_theme_type()
def delete_custom_theme ( self ) : theme_name = self . custom_theme . get ( ) delmsg = 'Are you sure you wish to delete the theme %r ?' if not tkMessageBox . askyesno ( 'Delete Theme' , delmsg % theme_name , parent = self ) : return self . deactivate_current_config ( ) changes . delete_section ( 'highlight' ) item_list = idleConf . GetSectionList ( 'user' , 'highlight' ) item_list . sort ( ) if not item_list : self . radio_theme_custom . config ( state = DISABLED ) self . opt_menu_theme_custom . SetMenu ( item_list , '- no custom themes -' ) else : self . opt_menu_theme_custom . SetMenu ( item_list , item_list [ 0 ] ) self . is_builtin_theme . set ( idleConf . defaultCfg [ 'main' ] . Get ( 'Theme' , 'default' ) ) self . builtin_theme . set ( idleConf . defaultCfg [ 'main' ] . Get ( 'Theme' , 'name' ) ) changes . save_all ( ) self . save_all_changed_extensions ( ) self . activate_config_changes ( ) self . set_theme_type ( )
Handle event to delete custom theme.
Handle event to delete custom theme .
"""Handle event to delete custom theme.

        The current theme is deactivated and the default theme is
        activated.  The custom theme is permanently removed from
        the config file.
        """ # Remove theme from changes, config, and file. # Reload user theme list. # Revert to default theme. # User can't back out of these changes, they must be applied now.
self