def METHOD_NAME(self, curr_step, steps_num):
    id = vars(self)["showResult"]
    self.ToggleTool(id, True)
    if curr_step >= steps_num:
        self.Enable("undo", False)
    else:
        self.Enable("undo", True)
    if curr_step <= 0:
        self.Enable("redo", False)
    else:
        self.Enable("redo", True)