#NEWLINE# def onDrop( self , event ) : #NEWLINE# #INDENT# dt = event . dataTransfer #NEWLINE# try : #NEWLINE# #INDENT# item = dt . getData ( 'text/plain' ) #NEWLINE# self . addMessage ( item ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . addMessage ( 'unsupported data type' ) #NEWLINE# #UNINDENT# DOM . eventPreventDefault ( dt )