#NEWLINE# def remove( self , w ) : #NEWLINE# #INDENT# self . dirty = True #NEWLINE# if ( self . focused is w ) : #NEWLINE# #INDENT# self . focused = None #NEWLINE# #UNINDENT# self . clients . remove ( w ) #NEWLINE# if self . clients : #NEWLINE# #INDENT# self . focused = self . clients [ 0 ] #NEWLINE# #UNINDENT# return self . focused