#NEWLINE# def set_image( self , image , sh_guard = True ) : #NEWLINE# #INDENT# ' Set the image on the underlying widget.\n\n        ' #NEWLINE# qpixmap = None #NEWLINE# if image : #NEWLINE# #INDENT# qimage = get_cached_qimage ( sh_guard ) #NEWLINE# qpixmap = QPixmap . fromImage ( qimage ) #NEWLINE# #UNINDENT# if sh_guard : #NEWLINE# #INDENT# with size_hint_guard ( self ) : #NEWLINE# #INDENT# self . widget . setPixmap ( qpixmap ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . widget . setPixmap ( qpixmap )