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