(self, *params)
Process selection of builtin key set.
Process selection of builtin key set.
Process selection of builtin key set .
def var_changed_builtin_name(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_name.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.keys_message['text'] = 'New key set, see Help'
        else:
            changes.add_option('main', 'Keys', 'name', value)
            changes.add_option('main', 'Keys', 'name2', '')
            self.keys_message['text'] = ''
        self.load_keys_list(value)
def var_changed_builtin_name ( self , * params ) : old_keys = ( 'IDLE Classic Windows' , 'IDLE Classic Unix' , 'IDLE Classic Mac' , 'IDLE Classic OSX' , ) value = self . builtin_name . 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 . keys_message [ 'text' ] = 'New key set, see Help' else : changes . add_option ( 'main' , 'Keys' , 'name' , value ) changes . add_option ( 'main' , 'Keys' , 'name2' , '' ) self . keys_message [ 'text' ] = '' self . load_keys_list ( value )