#NEWLINE# def onDragEnd( self , event ) : #NEWLINE# #INDENT# dt = event . dataTransfer #NEWLINE# styles = self . getStyleName ( ) #NEWLINE# if ( ( dt . dropEffect != 'none' ) and ( not ( 'drop_fail' in styles ) ) ) : #NEWLINE# #INDENT# self . remove ( self . movingWidget ) #NEWLINE# msg = 'drop succeeded' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . movingWidget . removeStyleName ( 'invisible' ) #NEWLINE# msg = 'drop failed' #NEWLINE# #UNINDENT# self . addMessage ( msg )