BC: Split tabWidget and graph display.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-05-04 17:31:58 +02:00
1 parent d13130c9a7
commit cbc249299c
2 files changed
+42 -38

No files matched your search

@@ -69,7 +69,7 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow):
self.paste_sc = QShortcut(QKeySequence.Paste, self)
def setup_table(self):
table = self.find(QTableView, "tableView")
table = self.find(QTableView, "tableView_liquid")
self._table = TableModel(
data = self._study.river,
undo = self._undo_stack
@@ -119,13 +119,13 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow):
def index_selected_row(self):
table = self.find(QTableView, "tableView")
table = self.find(QTableView, "tableView_liquid")
return table.selectionModel()\
.selectedRows()[0]\
.row()
def index_selected_rows(self):
table = self.find(QTableView, "tableView")
table = self.find(QTableView, "tableView_liquid")
return list(
# Delete duplicate
set(