def change(self, when, rat): global ratio yield SimulationRT.hold, self, when SimulationRT.rtset(rat) ratio = rat
def set_sim_speed(self, speed): try: SimPy.rtset(speed) except AttributeError: self.show_message('Start simulation first.')