#NEWLINE# def bind_key_release( self , method , key , modifiers = 0 ) : #NEWLINE# #INDENT# 'Bind a method to a key at runtime to be invoked when the key is releaseed,\n\t\tthis replaces any existing key hold binding for this key. To unbind\n\t\tthe key entirely, pass ``None`` for method.\n\t\t' #NEWLINE# if ( method is not None ) : #NEWLINE# #INDENT# self . _key_release_map [ ( key , ( modifiers & self . MODIFIER_MASK ) ) ] = method #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# del self . _key_release_map [ ( key , ( key & self . MODIFIER_MASK ) ) ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass