示例#1
0
 def load_simulation(self, filename):
     self.view.unload()
     with open(filename, 'rt', encoding='utf8') as fp:
         simulation = Simulation.deserialize(json.load(fp))
     self.view.load(simulation)
     self.state = 'simu'