From c6fe1d6028d5786dcc2a12e10c059552cae2387c Mon Sep 17 00:00:00 2001 From: Andreas Eknes Lie Date: Fri, 13 Dec 2024 15:28:33 +0100 Subject: [PATCH 1/2] Set simulation button default selected --- src/ert/gui/main_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ert/gui/main_window.py b/src/ert/gui/main_window.py index 497e46a364f..bacdd7fc127 100644 --- a/src/ert/gui/main_window.py +++ b/src/ert/gui/main_window.py @@ -118,7 +118,9 @@ def __init__( self._experiment_panel: ExperimentPanel | None = None self._plot_window: PlotWindow | None = None self._manage_experiments_panel: ManageExperimentsPanel | None = None - self._add_sidebar_button("Start simulation", QIcon("img:library_add.svg")) + self._add_sidebar_button( + "Start simulation", QIcon("img:library_add.svg") + ).click() plot_button = self._add_sidebar_button("Create plot", QIcon("img:timeline.svg")) plot_button.setToolTip("Right click to open external window") self._add_sidebar_button("Manage experiments", QIcon("img:build_wrench.svg")) From 3e2f7b2e567c42d5602c71718574e363e689d98c Mon Sep 17 00:00:00 2001 From: AugustoMagalhaes Date: Mon, 16 Dec 2024 12:28:40 +0100 Subject: [PATCH 2/2] Automatically change sidebar focus when running simulations --- src/ert/gui/main_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ert/gui/main_window.py b/src/ert/gui/main_window.py index bacdd7fc127..ad4106da5c8 100644 --- a/src/ert/gui/main_window.py +++ b/src/ert/gui/main_window.py @@ -237,6 +237,9 @@ def post_init(self) -> None: self.config_file, self.facade.get_ensemble_size(), ) + experiment_panel.experiment_started.connect( + lambda: self.results_button.setChecked(True) + ) self.central_layout.addWidget(experiment_panel) self._experiment_panel = experiment_panel self.central_panels_map["Start simulation"] = self._experiment_panel