mirror of https://gitlab.com/pamhyr/pamhyr2
Pamhyr2: Fix pep8.
parent
5cc5628956
commit
064b3efa13
|
|
@ -83,9 +83,9 @@ class ProfileWindow(PamhyrWindow):
|
||||||
|
|
||||||
def setup_table(self):
|
def setup_table(self):
|
||||||
if self._study.is_read_only():
|
if self._study.is_read_only():
|
||||||
editable_headers=[]
|
editable_headers = []
|
||||||
else:
|
else:
|
||||||
editable_headers=["name", "x", "y", "z"]
|
editable_headers = ["name", "x", "y", "z"]
|
||||||
|
|
||||||
table_headers = self._trad.get_dict("table_headers")
|
table_headers = self._trad.get_dict("table_headers")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,9 @@ class NetworkWindow(PamhyrWindow):
|
||||||
self._graph_widget.changeNode.connect(self.update)
|
self._graph_widget.changeNode.connect(self.update)
|
||||||
|
|
||||||
if self._study.is_editable:
|
if self._study.is_editable:
|
||||||
self._nodes_model.dataChanged.connect(self._graph_widget.rename_nodes)
|
self._nodes_model\
|
||||||
|
.dataChanged\
|
||||||
|
.connect(self._graph_widget.rename_nodes)
|
||||||
|
|
||||||
self.find(QAction, "action_toolBar_add").setCheckable(True)
|
self.find(QAction, "action_toolBar_add").setCheckable(True)
|
||||||
self.find(QAction, "action_toolBar_add").triggered.connect(
|
self.find(QAction, "action_toolBar_add").triggered.connect(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue