Exemplo n.º 1
0
    def __init__(self, app, simulation):
        gtk.VBox.__init__(self)
        self.app = app
        self.simulation = simulation

        self.pack_start(self._toolbar(), False, False)
        self.netview = NetView(app, None, other_tabs=(("History", self._history()),))
        self.config = SimCanvasConfig(self.netview)
        self.config.simulation = simulation
        self.config.simview = self
        self.netview.set_config(self.config)
        self.pack_start(self.netview, True, True)

        self.netview.set_runinstance(self.simulation.runinstance)
        simulation.set_callback("changed", self._simulation_changed)

        self.button_run_phase12.set_active(True)
        self.button_auto_receive.set_active(True)
        self.show_all()