#NEWLINE# def append( self , child , expand = False , horizontalAlignment = None , verticalAlignment = None ) : #NEWLINE# #INDENT# assert isinstance ( child , GafferUI . Widget ) #NEWLINE# oldParent = child . parent ( ) #NEWLINE# if ( oldParent is not None ) : #NEWLINE# #INDENT# oldParent . removeChild ( child ) #NEWLINE# #UNINDENT# self . __widgets . append ( child ) #NEWLINE# stretch = ( 1 if expand else 0 ) #NEWLINE# self . __qtLayout . addWidget ( child . _qtWidget ( ) , stretch , self . __convertToQtAlignment ( horizontalAlignment , oldParent ) ) #NEWLINE# child . _applyVisibility ( )