#NEWLINE# def OnDragOver( self , x , y , default_drag_result ) : #NEWLINE# #INDENT# ' Called when a data object is being dragged over the target. ' #NEWLINE# data = clipboard . data #NEWLINE# if ( clipboard . drop_source is None ) : #NEWLINE# #INDENT# if ( not hasattr ( self . handler , 'wx_drag_any' ) ) : #NEWLINE# #INDENT# return default_drag_result #NEWLINE# #UNINDENT# data = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not clipboard . drop_source . allow_move ) : #NEWLINE# #INDENT# default_drag_result = wx . DragCopy #NEWLINE# #UNINDENT# #UNINDENT# if hasattr ( self . handler , 'wx_drag_any' ) : #NEWLINE# #INDENT# drag_result = self . handler . wx_drag_any ( x , y , data , default_drag_result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( self . handler , 'wx_drag_over' ) : #NEWLINE# #INDENT# drag_result = self . handler . wx_drag_over ( x , y , data , default_drag_result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( drag_result . handler , 'on_drag_over' ) : #NEWLINE# #INDENT# drag_result = self . handler . on_drag_over ( x , y , data , default_drag_result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# drag_result = default_drag_result #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return drag_result