#NEWLINE# def _process_events_before_frame( self ) : #NEWLINE# #INDENT# found = True #NEWLINE# count = self . max_iteration #NEWLINE# events = self . _events #NEWLINE# while found : #NEWLINE# #INDENT# count -= 1 #NEWLINE# if ( count == ( - 1 ) ) : #NEWLINE# #INDENT# Logger . critical ( 'Clock: Warning, too much iteration done before the next frame. Check your code, or increase the Clock.max_iteration attribute' ) #NEWLINE# break #NEWLINE# #UNINDENT# found = False #NEWLINE# for events in self . _events : #NEWLINE# #INDENT# remove = events . remove #NEWLINE# for event in events [ : ] : #NEWLINE# #INDENT# if ( event . timeout != ( - 1 ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# found = True #NEWLINE# if ( event in events ) : #NEWLINE# #INDENT# event . tick ( self . _last_tick , remove )