mirror of https://gitlab.com/pamhyr/pamhyr2
correct pep8 rules
parent
606b9919e3
commit
c38e3ee446
|
|
@ -222,7 +222,7 @@ class D90TableModel(PamhyrTableModel):
|
||||||
self._data,
|
self._data,
|
||||||
self._data._data,
|
self._data._data,
|
||||||
[data_rows[id(self._lst[row])] for row in rows
|
[data_rows[id(self._lst[row])] for row in rows
|
||||||
if 0 <= row < len(self._lst)]
|
if 0 <= row < len(self._lst)]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -267,12 +267,12 @@ class D90AdisTSWindow(PamhyrWindow):
|
||||||
undo_stack = self._undo_stack
|
undo_stack = self._undo_stack
|
||||||
if undo_stack is None or not undo_stack.canUndo():
|
if undo_stack is None or not undo_stack.canUndo():
|
||||||
return
|
return
|
||||||
|
|
||||||
if isinstance(undo_stack.command(undo_stack.index() - 1), SetCommand):
|
if isinstance(undo_stack.command(undo_stack.index() - 1), SetCommand):
|
||||||
self._table.undo()
|
self._table.undo()
|
||||||
else:
|
else:
|
||||||
self._table_spec.undo()
|
self._table_spec.undo()
|
||||||
|
|
||||||
self._update()
|
self._update()
|
||||||
|
|
||||||
def _redo(self):
|
def _redo(self):
|
||||||
|
|
|
||||||
|
|
@ -238,8 +238,8 @@ class DIFTableModel(PamhyrTableModel):
|
||||||
DelCommand(
|
DelCommand(
|
||||||
self._data,
|
self._data,
|
||||||
self._data._data,
|
self._data._data,
|
||||||
[data_rows[id(self._lst[row])] for row in rows
|
[data_rows[id(self._lst[row])] for row in rows
|
||||||
if 0 <= row < len(self._lst)]
|
if 0 <= row < len(self._lst)]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self._setup_lst()
|
self._setup_lst()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue