def handle_event(self, solver, event_info):
    while True:
        self.event_switch(solver, event_info)
        self.init_mode(solver)
        if (not (True in event_info)):
            break
def handle_event(self, solver, event_info):
    while True:
        self.event_switch(solver, event_info)
        self.init_mode(solver)
        if (not (True in event_info)):
            break