#NEWLINE# def setImage( self , imageOrImageFileName ) : #NEWLINE# #INDENT# assert isinstance ( imageOrImageFileName , ( basestring , GafferUI . Image , type ( None ) ) ) #NEWLINE# if isinstance ( imageOrImageFileName , basestring ) : #NEWLINE# #INDENT# self . __image = GafferUI . Image ( imageOrImageFileName ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __image = imageOrImageFileName #NEWLINE# #UNINDENT# self . __updateIcon ( )