#NEWLINE# def shrink_up( self , cidx , amt ) : #NEWLINE# #INDENT# 'Shrink the window up\n\n        Will shrink all secondary clients above the specified index in order.\n        Each client will attempt to shrink as much as it is able before the\n        next client is resized.\n\n        Any amount that was unable to be applied to the clients is returned.\n        ' #NEWLINE# left = amt #NEWLINE# for idx in range ( 0 , cidx ) : #NEWLINE# #INDENT# left -= ( left - self . shrink ( left , left ) ) #NEWLINE# #UNINDENT# return left