mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
MainWindow: Add BC short cut for sediment.
This commit is contained in:
1 parent
a4c5d34720
commit
8466531916
4 files changed
+31
-2
No files matched your search
@@ -18,7 +18,7 @@
|
||||
|
||||
import logging
|
||||
|
||||
from tools import trace, timer
|
||||
from tools import trace, timer, logger_exception
|
||||
|
||||
from View.Tools.PamhyrWindow import PamhyrWindow
|
||||
|
||||
@@ -37,6 +37,7 @@ from PyQt5.QtWidgets import (
|
||||
QFileDialog, QTableView, QAbstractItemView,
|
||||
QUndoStack, QShortcut, QAction, QItemDelegate,
|
||||
QComboBox, QVBoxLayout, QHeaderView, QTabWidget,
|
||||
QWidget,
|
||||
)
|
||||
|
||||
from Model.BoundaryCondition.BoundaryConditionTypes import (
|
||||
@@ -170,6 +171,13 @@ class BoundaryConditionWindow(PamhyrWindow):
|
||||
)
|
||||
)
|
||||
|
||||
def set_active_tab(self, tab_id=0):
|
||||
try:
|
||||
tab_widget = self.find(QTabWidget, "tabWidget")
|
||||
tab_widget.setCurrentIndex(tab_id)
|
||||
except Exception as e:
|
||||
logger_exception(e)
|
||||
|
||||
def add(self):
|
||||
tab = self.current_tab()
|
||||
rows = self.index_selected_rows()
|
||||
|
||||
Reference in new issue
Block a user