Lib/idlelib/configdialog.py
def var_changed_builtin_keys(self, *params):
        "Process selection of builtin key set."
        old_keys = (
            'IDLE Classic Windows',
            'IDLE Classic Unix',
            'IDLE Classic Mac',
            'IDLE Classic OSX',
        )
        value = self.builtin_keys.get()
        if value not in old_keys:
            if idleConf.GetOption('main', 'Keys', 'name') not in old_keys:
                changes.add_option('main', 'Keys', 'name', old_keys[0])
            changes.add_option('main', 'Keys', 'name2', value)
            self.new_custom_keys.config(text='New key set, see Help',
                                        fg='#500000')
        else:
            changes.add_option('main', 'Keys', 'name', value)
            changes.add_option('main', 'Keys', 'name2', '')
            self.new_custom_keys.config(text='', fg='black')
        self.load_keys_list(value)
Process selection of builtin key set.
Process selection of builtin key set.
Process selection of builtin key set .
def var_changed_builtin_keys(self, *params):
        old_keys = (
            'IDLE Classic Windows',
            'IDLE Classic Unix',
            'IDLE Classic Mac',
            'IDLE Classic OSX',
        )
        value = self.builtin_keys.get()
        if value not in old_keys:
            if idleConf.GetOption('main', 'Keys', 'name') not in old_keys:
                changes.add_option('main', 'Keys', 'name', old_keys[0])
            changes.add_option('main', 'Keys', 'name2', value)
            self.new_custom_keys.config(text='New key set, see Help',
                                        fg='#500000')
        else:
            changes.add_option('main', 'Keys', 'name', value)
            changes.add_option('main', 'Keys', 'name2', '')
            self.new_custom_keys.config(text='', fg='black')
        self.load_keys_list(value)
def var_changed_builtin_keys ( self , * params ) : old_keys = ( 'IDLE Classic Windows' , 'IDLE Classic Unix' , 'IDLE Classic Mac' , 'IDLE Classic OSX' , ) value = self . builtin_keys . get ( ) if value not in old_keys : if idleConf . GetOption ( 'main' , 'Keys' , 'name' ) not in old_keys : changes . add_option ( 'main' , 'Keys' , 'name' , old_keys [ 0 ] ) changes . add_option ( 'main' , 'Keys' , 'name2' , value ) self . new_custom_keys . config ( text = 'New key set, see Help' , fg = '#500000' ) else : changes . add_option ( 'main' , 'Keys' , 'name' , value ) changes . add_option ( 'main' , 'Keys' , 'name2' , '' ) self . new_custom_keys . config ( text = '' , fg = 'black' ) self . load_keys_list ( value )
Process selection of builtin key set.
Process selection of builtin key set .
"Process selection of builtin key set."
self