Skip to content

Commit

Permalink
Add splitter to rundialog to faciliate adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Aug 14, 2024
1 parent 69dd5a0 commit b309f8b
Showing 1 changed file with 11 additions and 4 deletions.
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(232)
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.Vertical)

Check failure on line 271 in src/ert/gui/simulation/run_dialog.py

View workflow job for this annotation

GitHub Actions / type-checking (3.12)

"type[Qt]" has no attribute "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

0 comments on commit b309f8b

Please sign in to comment.