#NEWLINE# def _get_id( self , window ) : #NEWLINE# #INDENT# if ( window in self . window_ids ) : #NEWLINE# #INDENT# return self . window_ids [ window ] [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# window_id = self . _get_next_counter ( ) #NEWLINE# self . window_ids [ window ] = [ window_id ] #NEWLINE# self . _persist_window_ids ( ) #NEWLINE# return window_id