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:
|
for profile in self._reach._profiles:
|
||||||
profile.purge(self._np_purge)
|
profile.purge(self._np_purge)
|
||||||
|
|
||||||
|
|
||||||
class ChangeReachCommand(QUndoCommand):
|
class ChangeReachCommand(QUndoCommand):
|
||||||
def __init__(self, new_reach, parent):
|
def __init__(self, new_reach, parent):
|
||||||
QUndoCommand.__init__(self)
|
QUndoCommand.__init__(self)
|
||||||
|
|
@ -307,8 +308,8 @@ class ChangeReachCommand(QUndoCommand):
|
||||||
p.setup_table()
|
p.setup_table()
|
||||||
p.update_redraw()
|
p.update_redraw()
|
||||||
p.find(QTableView, "tableView").selectionModel()\
|
p.find(QTableView, "tableView").selectionModel()\
|
||||||
.selectionChanged\
|
.selectionChanged\
|
||||||
.connect(p.select_current_profile)
|
.connect(p.select_current_profile)
|
||||||
|
|
||||||
def redo(self):
|
def redo(self):
|
||||||
p = self._parent
|
p = self._parent
|
||||||
|
|
@ -317,8 +318,8 @@ class ChangeReachCommand(QUndoCommand):
|
||||||
p.setup_table()
|
p.setup_table()
|
||||||
p.update_redraw()
|
p.update_redraw()
|
||||||
p.find(QTableView, "tableView").selectionModel()\
|
p.find(QTableView, "tableView").selectionModel()\
|
||||||
.selectionChanged\
|
.selectionChanged\
|
||||||
.connect(p.select_current_profile)
|
.connect(p.select_current_profile)
|
||||||
|
|
||||||
|
|
||||||
class ShiftCommand(QUndoCommand):
|
class ShiftCommand(QUndoCommand):
|
||||||
|
|
|
||||||
|
|
@ -552,7 +552,6 @@ class GeometryWindow(PamhyrWindow):
|
||||||
logger_exception(e)
|
logger_exception(e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
def duplicate(self):
|
def duplicate(self):
|
||||||
rows = [
|
rows = [
|
||||||
row.row() for row in
|
row.row() for row in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue