#NEWLINE# def _grow_secondary( self , amt ) : #NEWLINE# #INDENT# 'Will grow the focused client in the secondary pane' #NEWLINE# half_change_size = ( amt / 2 ) #NEWLINE# left = amt #NEWLINE# if ( self . focused == 1 ) : #NEWLINE# #INDENT# left -= ( amt - self . shrink_down_shared ( 0 , amt ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . focused == ( len ( self . clients ) - 1 ) ) : #NEWLINE# #INDENT# left -= ( amt - self . shrink_up ( ( len ( self . relative_sizes ) - 1 ) , amt ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# idx = ( self . focused - 1 ) #NEWLINE# left -= ( half_change_size - self . shrink_up_shared ( idx , half_change_size ) ) #NEWLINE# left -= ( half_change_size - self . shrink_down_shared ( idx , half_change_size ) ) #NEWLINE# left -= ( half_change_size - self . shrink_up_shared ( idx , half_change_size ) ) #NEWLINE# left -= ( half_change_size - self . shrink_down_shared ( idx , half_change_size ) ) #NEWLINE# #UNINDENT# #UNINDENT# diff = ( amt - left ) #NEWLINE# self . relative_sizes [ ( self . focused - 1 ) ] += self . _get_relative_size_from_absolute ( diff )