#NEWLINE# def setChild( self , child ) : #NEWLINE# #INDENT# if ( self . __child is not None ) : #NEWLINE# #INDENT# self . removeChild ( self . __child ) #NEWLINE# #UNINDENT# if ( child is not None ) : #NEWLINE# #INDENT# oldParent = child . parent ( ) #NEWLINE# if ( oldParent is not None ) : #NEWLINE# #INDENT# oldParent . removeChild ( child ) #NEWLINE# #UNINDENT# self . _qtWidget ( ) . layout ( ) . addWidget ( child . _qtWidget ( ) , 0 , 0 ) #NEWLINE# child . _applyVisibility ( ) #NEWLINE# #UNINDENT# self . __child = child