mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Fix pep8
This commit is contained in:
1 parent
318f6a4668
commit
b0e0dc75f1
6 files changed
+21
-12
No files matched your search
@@ -206,9 +206,12 @@ class GeometryWindow(PamhyrWindow):
|
||||
self.find(QCheckBox, "checkBox_show_interpolated").toggled.connect(
|
||||
self.update_redraw
|
||||
)
|
||||
self._table.modelReset.connect(self.update_interpolated_profiles_visibility)
|
||||
self._table.rowsInserted.connect(self.update_interpolated_profiles_visibility)
|
||||
self._table.rowsRemoved.connect(self.update_interpolated_profiles_visibility)
|
||||
self._table.modelReset.connect(
|
||||
self.update_interpolated_profiles_visibility)
|
||||
self._table.rowsInserted.connect(
|
||||
self.update_interpolated_profiles_visibility)
|
||||
self._table.rowsRemoved.connect(
|
||||
self.update_interpolated_profiles_visibility)
|
||||
if self._study.is_read_only():
|
||||
actions = {
|
||||
"action_export": self.export_to_file,
|
||||
@@ -255,7 +258,8 @@ class GeometryWindow(PamhyrWindow):
|
||||
).isChecked()
|
||||
selection = self.tableView.selectionModel()
|
||||
for row in range(self._table.rowCount()):
|
||||
hidden = not show_interpolated and self._reach.profile(row).interpolated
|
||||
hidden = not show_interpolated \
|
||||
and self._reach.profile(row).interpolated
|
||||
self.tableView.setRowHidden(row, hidden)
|
||||
if hidden:
|
||||
selection.select(
|
||||
@@ -263,7 +267,8 @@ class GeometryWindow(PamhyrWindow):
|
||||
QItemSelectionModel.Deselect | QItemSelectionModel.Rows
|
||||
)
|
||||
if selection.currentIndex().row() == row:
|
||||
selection.setCurrentIndex(QModelIndex(), QItemSelectionModel.NoUpdate)
|
||||
selection.setCurrentIndex(QModelIndex(),
|
||||
QItemSelectionModel.NoUpdate)
|
||||
|
||||
def update_redraw(self):
|
||||
self._update(redraw=True)
|
||||
|
||||
Reference in new issue
Block a user