#NEWLINE# def wx_dropped_on( self , x , y , data , drag_result ) : #NEWLINE# #INDENT# ' Handles a Python object being dropped on the tree.\n        ' #NEWLINE# klass = self . factory . klass #NEWLINE# value = data #NEWLINE# if self . factory . binding : #NEWLINE# #INDENT# value = getattr ( clipboard , 'node' , None ) #NEWLINE# #UNINDENT# if ( ( klass is None ) or isinstance ( data , klass ) ) : #NEWLINE# #INDENT# self . _no_update = True #NEWLINE# try : #NEWLINE# #INDENT# if hasattr ( value , 'drop_editor_value' ) : #NEWLINE# #INDENT# self . value = value . drop_editor_value ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . value = value #NEWLINE# #UNINDENT# if hasattr ( y , 'drop_editor_update' ) : #NEWLINE# #INDENT# value . drop_editor_update ( self . control ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . control . SetValue ( self . str_value ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . _no_update = False #NEWLINE# #UNINDENT# return drag_result #NEWLINE# #UNINDENT# return wx . DragNone