(self)
Load current configuration settings for the keybinding options.
Load current configuration settings for the keybinding options.
Load current configuration settings for the keybinding options .
def load_key_cfg(self):
        "Load current configuration settings for the keybinding options."
        # Set current keys type radiobutton.
        self.keyset_source.set(idleConf.GetOption(
                'main', 'Keys', 'default', type='bool', default=1))
        # Set current keys.
        current_option = idleConf.CurrentKeys()
        # Load available keyset option menus.
        if self.keyset_source.get():  # Default theme selected.
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.builtinlist.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            if not item_list:
                self.custom_keyset_on.state(('disabled',))
                self.custom_name.set('- no custom keys -')
            else:
                self.customlist.SetMenu(item_list, item_list[0])
        else:  # User key set selected.
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            self.customlist.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.builtinlist.SetMenu(item_list, idleConf.default_keys())
        self.set_keys_type()
        # Load keyset element list.
        keyset_name = idleConf.CurrentKeys()
        self.load_keys_list(keyset_name)
def load_key_cfg ( self ) : # Set current keys type radiobutton. self . keyset_source . set ( idleConf . GetOption ( 'main' , 'Keys' , 'default' , type = 'bool' , default = 1 ) ) # Set current keys. current_option = idleConf . CurrentKeys ( ) # Load available keyset option menus. if self . keyset_source . get ( ) : # Default theme selected. item_list = idleConf . GetSectionList ( 'default' , 'keys' ) item_list . sort ( ) self . builtinlist . SetMenu ( item_list , current_option ) item_list = idleConf . GetSectionList ( 'user' , 'keys' ) item_list . sort ( ) if not item_list : self . custom_keyset_on . state ( ( 'disabled' , ) ) self . custom_name . set ( '- no custom keys -' ) else : self . customlist . SetMenu ( item_list , item_list [ 0 ] ) else : # User key set selected. item_list = idleConf . GetSectionList ( 'user' , 'keys' ) item_list . sort ( ) self . customlist . SetMenu ( item_list , current_option ) item_list = idleConf . GetSectionList ( 'default' , 'keys' ) item_list . sort ( ) self . builtinlist . SetMenu ( item_list , idleConf . default_keys ( ) ) self . set_keys_type ( ) # Load keyset element list. keyset_name = idleConf . CurrentKeys ( ) self . load_keys_list ( keyset_name )