Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add splitter to rundialog to facilitate UI adjustments #8449

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/ert/gui/simulation/run_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
QPlainTextEdit,
QProgressBar,
QPushButton,
QSplitter,
QTableView,
QTabWidget,
QVBoxLayout,
Expand Down Expand Up @@ -190,6 +191,7 @@ def __init__(

self._isDetailedDialog = True
self._minimum_width = 1200
self._minimum_height = 800

self._ticker = QTimer(self)
self._ticker.timeout.connect(self._on_ticker)
Expand All @@ -209,7 +211,7 @@ def __init__(
self._progress_widget = ProgressWidget()

self._tab_widget = QTabWidget(self)
self._tab_widget.setMinimumHeight(200)
self._tab_widget.setMinimumHeight(250)
self._tab_widget.currentChanged.connect(self._current_tab_changed)
self._snapshot_model.rowsInserted.connect(self.on_snapshot_new_iteration)

Expand Down Expand Up @@ -263,9 +265,14 @@ def __init__(
layout.addWidget(self._total_progress_bar)
layout.addWidget(self._iteration_progress_label)
layout.addWidget(self._progress_widget)
layout.addWidget(self._tab_widget)
layout.addWidget(self._job_label)
layout.addWidget(self._job_overview)

adjustable_splitter_layout = QSplitter()
adjustable_splitter_layout.setOrientation(Qt.Orientation.Vertical)
adjustable_splitter_layout.addWidget(self._tab_widget)
adjustable_splitter_layout.addWidget(self._job_overview)

layout.addWidget(adjustable_splitter_layout)
layout.addWidget(button_widget_container)

self.setLayout(layout)
Expand All @@ -276,7 +283,7 @@ def __init__(
self.show_details_button.clicked.connect(self.toggle_detailed_progress)
self.simulation_done.connect(self._on_simulation_done)

self.setMinimumWidth(self._minimum_width)
self.setMinimumSize(self._minimum_width, self._minimum_height)
self._setDetailedDialog()
self.finished.connect(self._on_finished)

Expand Down