#NEWLINE# @ items . setter #NEWLINE# def items( self , new_items ) : #NEWLINE# #INDENT# for child in self . children : #NEWLINE# #INDENT# child . rm ( ) #NEWLINE# #UNINDENT# ( w , h ) = ( 0 , 0 ) #NEWLINE# for item in new_items : #NEWLINE# #INDENT# item . frame . topleft = ( 0 , h ) #NEWLINE# self . add_child ( item ) #NEWLINE# w = max ( w , item . frame . w ) #NEWLINE# h += item . frame . h #NEWLINE# #UNINDENT# self . frame . size = ( w , h ) #NEWLINE# self . _items = new_items #NEWLINE# if ( self . parent is not None ) : #NEWLINE# #INDENT# self . layout ( )