def METHOD_NAME(self, action):
    if action.getId() in self.action_exit_keys_id:
        self.close()
        return
    # Bad thing to check for changes in this way, but i have not found any other ways
    slider_value = self.getControl(10004).getInt()
    if slider_value != self.current_level_index:
        self._update_status_desc(slider_value)