def replay_step_down(self, number=0): if number > 0: if number > 1: self.game.replays -= 1 graphics.replay_step_down(self.game.replays, graphics.broadway_51.reel1, graphics.broadway_51.reel10, graphics.broadway_51.reel100) self.game.coils.registerDown.pulse() number -= 1 self.cancel_delayed(name="display") graphics.broadway_51.display(self) self.delay(name="replay_reset", delay=0.13, handler=self.replay_step_down, param=number) elif number == 1: self.game.replays -= 1 graphics.replay_step_down(self.game.replays, graphics.broadway_51.reel1, graphics.broadway_51.reel10, graphics.broadway_51.reel100) self.game.coils.registerDown.pulse() number -= 1 self.cancel_delayed(name="display") graphics.broadway_51.display(self) self.cancel_delayed(name="replay_reset") else: if self.game.replays > 0: self.game.replays -= 1 graphics.replay_step_down(self.game.replays, graphics.broadway_51.reel1, graphics.broadway_51.reel10, graphics.broadway_51.reel100) self.cancel_delayed(name="display") self.delay(name="display", delay=0.1, handler=graphics.broadway_51.display, param=self) self.game.coils.registerDown.pulse()