mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
d6c1316178
commit
243941db51
|
|
@ -292,6 +292,7 @@ class PurgeCommand(QUndoCommand):
|
|||
for profile in self._reach._profiles:
|
||||
profile.purge(self._np_purge)
|
||||
|
||||
|
||||
class ChangeReachCommand(QUndoCommand):
|
||||
def __init__(self, new_reach, parent):
|
||||
QUndoCommand.__init__(self)
|
||||
|
|
@ -307,8 +308,8 @@ class ChangeReachCommand(QUndoCommand):
|
|||
p.setup_table()
|
||||
p.update_redraw()
|
||||
p.find(QTableView, "tableView").selectionModel()\
|
||||
.selectionChanged\
|
||||
.connect(p.select_current_profile)
|
||||
.selectionChanged\
|
||||
.connect(p.select_current_profile)
|
||||
|
||||
def redo(self):
|
||||
p = self._parent
|
||||
|
|
@ -317,8 +318,8 @@ class ChangeReachCommand(QUndoCommand):
|
|||
p.setup_table()
|
||||
p.update_redraw()
|
||||
p.find(QTableView, "tableView").selectionModel()\
|
||||
.selectionChanged\
|
||||
.connect(p.select_current_profile)
|
||||
.selectionChanged\
|
||||
.connect(p.select_current_profile)
|
||||
|
||||
|
||||
class ShiftCommand(QUndoCommand):
|
||||
|
|
|
|||
|
|
@ -552,7 +552,6 @@ class GeometryWindow(PamhyrWindow):
|
|||
logger_exception(e)
|
||||
return
|
||||
|
||||
|
||||
def duplicate(self):
|
||||
rows = [
|
||||
row.row() for row in
|
||||
|
|
|
|||
Loading…
Reference in New Issue