#NEWLINE# @ staticmethod #NEWLINE# def Stack( layouts ) : #NEWLINE# #INDENT# 'Return the vertical composition of a sequence of layouts.\n\n    Args:\n      layouts: a sequence of Layout objects.\n    Returns:\n      A new Layout, stacking the arguments.\n    ' #NEWLINE# l_elts = [ ] #NEWLINE# for l in layouts : #NEWLINE# #INDENT# for e in l . elements : #NEWLINE# #INDENT# l_elts . append ( e ) #NEWLINE# #UNINDENT# l_elts . append ( LayoutElement . NewLine ( ) ) #NEWLINE# #UNINDENT# return Layout ( l_elts [ : ( - 1 ) ] )