Resulable besim handof so recompiling model does not give second besim window

This commit is contained in:
Joppe Blondel
2026-08-02 12:05:08 +02:00
parent 4b565edb5c
commit c8373c3423
6 changed files with 150 additions and 1 deletions
+2
View File
@@ -9,6 +9,7 @@ from bedit_gui.controllers.simulation_file_controller import SimulationFileContr
from bedit_gui.controllers.log_controller import LogController
from bedit_gui.controllers.simulation_plot_controller import SimulationPlotController
from bedit_gui.controllers.simulation_run_controller import SimulationRunController
from bedit_gui.controllers.simulation_handoff_controller import SimulationHandoffController
from bedit_gui.simulation_models import CompiledModel
from bedit_gui.services.application_settings import SimulationApplicationSettings
from bedit_gui.views.simulation_window import SimulationWindow
@@ -51,6 +52,7 @@ def main(arguments: list[str] | None = None) -> int:
LogController(window, settings.log_level)
run_controller = SimulationRunController(window, controller)
plot_controller = SimulationPlotController(window, controller)
SimulationHandoffController(window, controller, run_controller)
run_controller.simulation_state_changed.connect(plot_controller.refresh_results)
window.showMaximized()