def handle_events(self):
    for event_ in event.get():
        if (event_.type == pg.QUIT):
            self.done = True
            break
        if (('events_filter' not in self.scene.settings) or (event_.type in self.scene.settings['events_filter'])):
            self.scene.handle_event(event)
def handle_events(self):
    for event_ in event.get():
        if (event_.type == pg.QUIT):
            self.done = True
            break
        if (('events_filter' not in self.scene.settings) or (event_.type in self.scene.settings['events_filter'])):
            self.scene.handle_event(event)