mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8: Fix some View code format.
This commit is contained in:
1 parent
9f2b81d385
commit
e99037223b
7 files changed
+109
-50
No files matched your search
+11
-6
@@ -195,14 +195,19 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"action_menu_edit_lateral_contribution": self.open_lateral_contrib,
|
||||
"action_menu_run_solver": self.run_solver,
|
||||
"action_menu_sediment_layers": self.open_sediment_layers,
|
||||
"action_menu_edit_reach_sediment_layers": self.open_reach_sediment_layers,
|
||||
"action_menu_edit_reach_sediment_layers":
|
||||
self.open_reach_sediment_layers,
|
||||
"action_menu_close": self.close_model,
|
||||
"action_menu_results_last": self.open_last_results,
|
||||
# Help
|
||||
"action_menu_pamhyr_users_pdf": lambda: self.open_doc_user(ext="pdf"),
|
||||
"action_menu_pamhyr_developers_pdf": lambda: self.open_doc_dev(ext="pdf"),
|
||||
"action_menu_pamhyr_users_html": lambda: self.open_doc_user(ext="html"),
|
||||
"action_menu_pamhyr_developers_html": lambda: self.open_doc_dev(ext="html"),
|
||||
"action_menu_pamhyr_users_pdf":
|
||||
lambda: self.open_doc_user(ext="pdf"),
|
||||
"action_menu_pamhyr_developers_pdf":
|
||||
lambda: self.open_doc_dev(ext="pdf"),
|
||||
"action_menu_pamhyr_users_html":
|
||||
lambda: self.open_doc_user(ext="html"),
|
||||
"action_menu_pamhyr_developers_html":
|
||||
lambda: self.open_doc_dev(ext="html"),
|
||||
"action_menu_mage": self.open_doc_mage,
|
||||
"action_menu_about": self.open_about,
|
||||
# ToolBar action
|
||||
@@ -531,7 +536,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
Returns:
|
||||
Nothing
|
||||
"""
|
||||
if not self._study is None:
|
||||
if self._study is not None:
|
||||
self.new_study = NewStudyWindow(study=self._study, parent=self)
|
||||
self.new_study.show()
|
||||
|
||||
|
||||
Reference in new issue
Block a user