#NEWLINE# def wx_dropped_on( self , x , y , data , drag_result ) : #NEWLINE# #INDENT# ' Handles a Python object being dropped on the window.\n        ' #NEWLINE# feature = self . _can_drop_on_feature ( x , y , data ) #NEWLINE# self . completed = True #NEWLINE# self . dock_control . post_drag ( FEATURE_EXTERNAL_DRAG ) #NEWLINE# if ( feature is not None ) : #NEWLINE# #INDENT# if isinstance ( data , IFeatureTool ) : #NEWLINE# #INDENT# dock_control = feature . dock_control #NEWLINE# data . feature_dropped_on_dock_control ( dock_control ) #NEWLINE# data . feature_dropped_on ( dock_control . object ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( wx , wy ) = self . control . GetScreenPosition ( ) #NEWLINE# feature . set ( x = ( wx + x ) , y = ( wy + y ) ) #NEWLINE# feature . drop ( x ) #NEWLINE# #UNINDENT# return drag_result #NEWLINE# #UNINDENT# return wx . DragNone