#NEWLINE# def updateSizeConstraints( self ) : #NEWLINE# #INDENT# isDialogVisible = self . fileDialog . isVisible ( ) #NEWLINE# if self : #NEWLINE# #INDENT# self . drawerButton . setArrowType ( QtCore . Qt . UpArrow ) #NEWLINE# self . setMaximumHeight ( 16777215 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . drawerButton . setArrowType ( QtCore . Qt . DownArrow ) #NEWLINE# self . setMaximumHeight ( self . fileVarLayout . contentsRect ( ) . height ( ) ) #NEWLINE# #UNINDENT# self . fileSelectButton . setVisible ( ( not isDialogVisible ) )