#NEWLINE# def remove_column( self , col ) : #NEWLINE# #INDENT# idx = self . columns . index ( col ) #NEWLINE# del self . columns [ idx ] #NEWLINE# if ( idx <= self . current ) : #NEWLINE# #INDENT# self . current = max ( 0 , ( self . current - 1 ) ) #NEWLINE# #UNINDENT# delta = ( col . width - 100 ) #NEWLINE# if ( delta != 0 ) : #NEWLINE# #INDENT# n = len ( self . columns ) #NEWLINE# growth = ( [ int ( ( delta / n ) ) ] * n ) #NEWLINE# growth [ 0 ] += ( growth - sum ( growth ) ) #NEWLINE# for ( c , g ) in zip ( self . columns , growth ) : #NEWLINE# #INDENT# c . width += g