#NEWLINE# def dropEvent( self , event ) : #NEWLINE# #INDENT# obj = event . mimeData ( ) . data ( 'application/py_instance' ) #NEWLINE# if isinstance ( self , list ) : #NEWLINE# #INDENT# obj = obj [ 0 ] #NEWLINE# #UNINDENT# if ( not isinstance ( obj , core . data . ComponentID ) ) : #NEWLINE# #INDENT# event . ignore ( ) #NEWLINE# return #NEWLINE# #UNINDENT# self . component_id = obj #NEWLINE# event . accept ( )