#NEWLINE# def sizeHint( self ) : #NEWLINE# #INDENT# ( width , height ) = ( 300 , 300 ) #NEWLINE# if ( self . viewer is not None ) : #NEWLINE# #INDENT# ( width , height ) = self . viewer . get_desired_size ( ) #NEWLINE# #UNINDENT# return QtCore . QSize ( width , height )