(keyset_name, keyset)
Save a newly created core key set.

        Add keyset to idleConf.userCfg['keys'], not to disk.
        If the keyset doesn't exist, it is created.  The
        binding/keys are taken from the keyset argument.

        keyset_name - string, the name of the new key set
        keyset - dictionary containing the new keybindings
Save a newly created core key set.
Save a newly created core key set .
def save_new_key_set(keyset_name, keyset):
        """Save a newly created core key set.

        Add keyset to idleConf.userCfg['keys'], not to disk.
        If the keyset doesn't exist, it is created.  The
        binding/keys are taken from the keyset argument.

        keyset_name - string, the name of the new key set
        keyset - dictionary containing the new keybindings
        """
        idleConf.userCfg['keys'].AddSection(keyset_name)
        for event in keyset:
            value = keyset[event]
            idleConf.userCfg['keys'].SetOption(keyset_name, event, value)
def save_new_key_set ( keyset_name , keyset ) : idleConf . userCfg [ 'keys' ] . AddSection ( keyset_name ) for event in keyset : value = keyset [ event ] idleConf . userCfg [ 'keys' ] . SetOption ( keyset_name , event , value )