#NEWLINE# def receiveCallback( self , widget , context , x , y , selection , targetType , time ) : #NEWLINE# #INDENT# if ( targetType == label . TARGET_TYPE_TEXT ) : #NEWLINE# #INDENT# label = widget . get_children ( ) [ 0 ] #NEWLINE# label . set_text ( selection . data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( targetType == self . TARGET_TYPE_PIXMAP ) : #NEWLINE# #INDENT# self . addImage ( string . split ( selection . data , '\n' ) , x , y )