#NEWLINE# def columnWidths( self ) : #NEWLINE# #INDENT# columns = [ ] #NEWLINE# children = self . getChildren ( ) #NEWLINE# if ( not children ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# N = len ( children [ 0 ] . children ) #NEWLINE# for i in range ( N ) : #NEWLINE# #INDENT# w = [ ] #NEWLINE# for row in children : #NEWLINE# #INDENT# pad = ( ( ( i < ( N - 1 ) ) and self . colpad ) or 0 ) #NEWLINE# col = row . children [ i ] #NEWLINE# w . append ( ( col . min_width + pad ) ) #NEWLINE# #UNINDENT# columns . append ( max ( w ) ) #NEWLINE# #UNINDENT# return columns