Lib/idlelib/configdialog.py
def load_key_cfg(self):
        "Load current configuration settings for the keybinding options."
        # Set current keys type radiobutton.
        self.are_keys_builtin.set(idleConf.GetOption(
                'main', 'Keys', 'default', type='bool', default=1))
        # Set current keys.
        current_option = idleConf.CurrentKeys()
        # Load available keyset option menus.
        if self.are_keys_builtin.get():  # Default theme selected.
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.opt_menu_keys_builtin.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            if not item_list:
                self.radio_keys_custom.config(state=DISABLED)
                self.custom_keys.set('- no custom keys -')
            else:
                self.opt_menu_keys_custom.SetMenu(item_list, item_list[0])
        else:  # User key set selected.
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            self.opt_menu_keys_custom.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.opt_menu_keys_builtin.SetMenu(item_list, idleConf.default_keys())
        self.set_keys_type()
        # Load keyset element list.
        keyset_name = idleConf.CurrentKeys()
        self.load_keys_list(keyset_name)
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):
        self.are_keys_builtin.set(idleConf.GetOption(
                'main', 'Keys', 'default', type='bool', default=1))
        current_option = idleConf.CurrentKeys()
        if self.are_keys_builtin.get():  
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.opt_menu_keys_builtin.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            if not item_list:
                self.radio_keys_custom.config(state=DISABLED)
                self.custom_keys.set('- no custom keys -')
            else:
                self.opt_menu_keys_custom.SetMenu(item_list, item_list[0])
        else:  
            item_list = idleConf.GetSectionList('user', 'keys')
            item_list.sort()
            self.opt_menu_keys_custom.SetMenu(item_list, current_option)
            item_list = idleConf.GetSectionList('default', 'keys')
            item_list.sort()
            self.opt_menu_keys_builtin.SetMenu(item_list, idleConf.default_keys())
        self.set_keys_type()
        keyset_name = idleConf.CurrentKeys()
        self.load_keys_list(keyset_name)
def load_key_cfg ( self ) : self . are_keys_builtin . set ( idleConf . GetOption ( 'main' , 'Keys' , 'default' , type = 'bool' , default = 1 ) ) current_option = idleConf . CurrentKeys ( ) if self . are_keys_builtin . get ( ) : item_list = idleConf . GetSectionList ( 'default' , 'keys' ) item_list . sort ( ) self . opt_menu_keys_builtin . SetMenu ( item_list , current_option ) item_list = idleConf . GetSectionList ( 'user' , 'keys' ) item_list . sort ( ) if not item_list : self . radio_keys_custom . config ( state = DISABLED ) self . custom_keys . set ( '- no custom keys -' ) else : self . opt_menu_keys_custom . SetMenu ( item_list , item_list [ 0 ] ) else : item_list = idleConf . GetSectionList ( 'user' , 'keys' ) item_list . sort ( ) self . opt_menu_keys_custom . SetMenu ( item_list , current_option ) item_list = idleConf . GetSectionList ( 'default' , 'keys' ) item_list . sort ( ) self . opt_menu_keys_builtin . SetMenu ( item_list , idleConf . default_keys ( ) ) self . set_keys_type ( ) keyset_name = idleConf . CurrentKeys ( ) self . load_keys_list ( keyset_name )
Load current configuration settings for the keybinding options.
Load current configuration settings for the keybinding options .
"Load current configuration settings for the keybinding options." # Set current keys type radiobutton. # Set current keys. # Load available keyset option menus. # Default theme selected. # User key set selected. # Load keyset element list.
self