def idle_callback(self): time_elapsed = self.time_checker.get_time(restart=False) self.cur_time += self.play_speed * time_elapsed self.time_checker.begin()