(self)
Set available screen options based on builtin or custom key set.
Set available screen options based on builtin or custom key set.
Set available screen options based on builtin or custom key set .
def set_keys_type(self):
        "Set available screen options based on builtin or custom key set."
        if self.keyset_source.get():
            self.builtinlist['state'] = 'normal'
            self.customlist['state'] = 'disabled'
            self.button_delete_custom_keys.state(('disabled',))
        else:
            self.builtinlist['state'] = 'disabled'
            self.custom_keyset_on.state(('!disabled',))
            self.customlist['state'] = 'normal'
            self.button_delete_custom_keys.state(('!disabled',))
def set_keys_type ( self ) : if self . keyset_source . get ( ) : self . builtinlist [ 'state' ] = 'normal' self . customlist [ 'state' ] = 'disabled' self . button_delete_custom_keys . state ( ( 'disabled' , ) ) else : self . builtinlist [ 'state' ] = 'disabled' self . custom_keyset_on . state ( ( '!disabled' , ) ) self . customlist [ 'state' ] = 'normal' self . button_delete_custom_keys . state ( ( '!disabled' , ) )