Lib/idlelib/configdialog.py
def delete_custom_keys(self):
        """Handle event to delete a custom key set.

        Applying the delete deactivates the current configuration and
        reverts to the default.  The custom key set is permanently
        deleted from the config file.
        """
        keyset_name=self.custom_keys.get()
        delmsg = 'Are you sure you wish to delete the key set %r ?'
        if not tkMessageBox.askyesno(
                'Delete Key Set',  delmsg % keyset_name, parent=self):
            return
        self.deactivate_current_config()
        # Remove key set from changes, config, and file.
        changes.remove(keyset_name)
        # Reload user key set list.
        item_list = idleConf.GetSectionList('user', 'keys')
        item_list.sort()
        if not item_list:
            self.radio_keys_custom.config(state=DISABLED)
            self.opt_menu_keys_custom.SetMenu(item_list, '- no custom keys -')
        else:
            self.opt_menu_keys_custom.SetMenu(item_list, item_list[0])
        # Revert to default key set.
        self.are_keys_builtin.set(idleConf.defaultCfg['main']
                                .Get('Keys', 'default'))
        self.builtin_keys.set(idleConf.defaultCfg['main'].Get('Keys', 'name')
                             or idleConf.default_keys())
        # 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_keys_type()
Handle event to delete a custom key set.

        Applying the delete deactivates the current configuration and
        reverts to the default.  The custom key set is permanently
        deleted from the config file.
        
Handle event to delete a custom key set.
Applying the delete deactivates the current configuration and
reverts to the default.  The custom key set is permanently
deleted from the config file.
Handle event to delete a custom key set . Applying the delete deactivates the current configuration and reverts to the default . The custom key set is permanently deleted from the config file .
def delete_custom_keys(self):
        keyset_name=self.custom_keys.get()
        delmsg = 'Are you sure you wish to delete the key set %r ?'
        if not tkMessageBox.askyesno(
                'Delete Key Set',  delmsg % keyset_name, parent=self):
            return
        self.deactivate_current_config()
        changes.remove(keyset_name)
        item_list = idleConf.GetSectionList('user', 'keys')
        item_list.sort()
        if not item_list:
            self.radio_keys_custom.config(state=DISABLED)
            self.opt_menu_keys_custom.SetMenu(item_list, '- no custom keys -')
        else:
            self.opt_menu_keys_custom.SetMenu(item_list, item_list[0])
        self.are_keys_builtin.set(idleConf.defaultCfg['main']
                                .Get('Keys', 'default'))
        self.builtin_keys.set(idleConf.defaultCfg['main'].Get('Keys', 'name')
                             or idleConf.default_keys())
        changes.save_all()
        self.save_all_changed_extensions()
        self.activate_config_changes()
        self.set_keys_type()
def delete_custom_keys ( self ) : keyset_name = self . custom_keys . get ( ) delmsg = 'Are you sure you wish to delete the key set %r ?' if not tkMessageBox . askyesno ( 'Delete Key Set' , delmsg % keyset_name , parent = self ) : return self . deactivate_current_config ( ) changes . remove ( keyset_name ) item_list = idleConf . GetSectionList ( 'user' , 'keys' ) item_list . sort ( ) if not item_list : self . radio_keys_custom . config ( state = DISABLED ) self . opt_menu_keys_custom . SetMenu ( item_list , '- no custom keys -' ) else : self . opt_menu_keys_custom . SetMenu ( item_list , item_list [ 0 ] ) self . are_keys_builtin . set ( idleConf . defaultCfg [ 'main' ] . Get ( 'Keys' , 'default' ) ) self . builtin_keys . set ( idleConf . defaultCfg [ 'main' ] . Get ( 'Keys' , 'name' ) or idleConf . default_keys ( ) ) changes . save_all ( ) self . save_all_changed_extensions ( ) self . activate_config_changes ( ) self . set_keys_type ( )
Handle event to delete a custom key set.
Handle event to delete a custom key set .
"""Handle event to delete a custom key set.

        Applying the delete deactivates the current configuration and
        reverts to the default.  The custom key set is permanently
        deleted from the config file.
        """ # Remove key set from changes, config, and file. # Reload user key set list. # Revert to default key set. # User can't back out of these changes, they must be applied now.
self