#NEWLINE# def _get_image( self , image ) : #NEWLINE# #INDENT# ' Converts a user specified image to a QIcon.\n        ' #NEWLINE# if isinstance ( image , basestring ) : #NEWLINE# #INDENT# self . image = image #NEWLINE# image = self . image #NEWLINE# #UNINDENT# if isinstance ( image , ImageResource ) : #NEWLINE# #INDENT# result = self . image_resources . get ( image ) #NEWLINE# if ( result is not None ) : #NEWLINE# #INDENT# return result #NEWLINE# #UNINDENT# return self . _add_image ( image ) #NEWLINE# #UNINDENT# return self . images . get ( image )