(self, keyset_name)
Reload the list of action/key binding pairs for the active key set.

        An action/key binding can be selected to change the key binding.
Reload the list of action/key binding pairs for the active key set.
Reload the list of action / key binding pairs for the active key set .
def load_keys_list(self, keyset_name):
        """Reload the list of action/key binding pairs for the active key set.

        An action/key binding can be selected to change the key binding.
        """
        reselect = False
        if self.bindingslist.curselection():
            reselect = True
            list_index = self.bindingslist.index(ANCHOR)
        keyset = idleConf.GetKeySet(keyset_name)
        bind_names = list(keyset.keys())
        bind_names.sort()
        self.bindingslist.delete(0, END)
        for bind_name in bind_names:
            key = ' '.join(keyset[bind_name])
            bind_name = bind_name[2:-2]  # Trim off the angle brackets.
            if keyset_name in changes['keys']:
                # Handle any unsaved changes to this key set.
                if bind_name in changes['keys'][keyset_name]:
                    key = changes['keys'][keyset_name][bind_name]
            self.bindingslist.insert(END, bind_name+' - '+key)
        if reselect:
            self.bindingslist.see(list_index)
            self.bindingslist.select_set(list_index)
            self.bindingslist.select_anchor(list_index)
def load_keys_list ( self , keyset_name ) : reselect = False if self . bindingslist . curselection ( ) : reselect = True list_index = self . bindingslist . index ( ANCHOR ) keyset = idleConf . GetKeySet ( keyset_name ) bind_names = list ( keyset . keys ( ) ) bind_names . sort ( ) self . bindingslist . delete ( 0 , END ) for bind_name in bind_names : key = ' ' . join ( keyset [ bind_name ] ) bind_name = bind_name [ 2 : - 2 ] # Trim off the angle brackets. if keyset_name in changes [ 'keys' ] : # Handle any unsaved changes to this key set. if bind_name in changes [ 'keys' ] [ keyset_name ] : key = changes [ 'keys' ] [ keyset_name ] [ bind_name ] self . bindingslist . insert ( END , bind_name + ' - ' + key ) if reselect : self . bindingslist . see ( list_index ) self . bindingslist . select_set ( list_index ) self . bindingslist . select_anchor ( list_index )