#NEWLINE# def get_sizes( self ) : #NEWLINE# #INDENT# res = [ ] #NEWLINE# if ( len ( self . panes ) > 0 ) : #NEWLINE# #INDENT# for pane in self . panes [ : ( - 1 ) ] : #NEWLINE# #INDENT# ( pos , total ) = self . _get_sizes ( pane ) #NEWLINE# res . append ( pos ) #NEWLINE# #UNINDENT# pane = self . panes [ ( - 1 ) ] #NEWLINE# ( pos , total ) = self . _get_sizes ( pane ) #NEWLINE# res . append ( total ) #NEWLINE# #UNINDENT# return res