mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pollutants names
This commit is contained in:
1 parent
1ba971af24
commit
1945e94190
18 files changed
+2003
-2
No files matched your search
+16
-1
@@ -76,6 +76,7 @@ from View.Results.Window import ResultsWindow
|
||||
from View.Results.ReadingResultsDialog import ReadingResultsDialog
|
||||
from View.Debug.Window import ReplWindow
|
||||
from View.OutputKpAdisTS.Window import OutputKpAdisTSWindow
|
||||
from View.Pollutants.Window import PollutantsWindow
|
||||
|
||||
# Optional internal display of documentation for make the application
|
||||
# package lighter...
|
||||
@@ -120,7 +121,7 @@ define_model_action = [
|
||||
"action_menu_results_last", "action_open_results_from_file",
|
||||
"action_menu_boundary_conditions_sediment",
|
||||
"action_menu_rep_additional_lines", "action_menu_output_kp",
|
||||
"action_menu_run_adists",
|
||||
"action_menu_run_adists", "action_menu_pollutants",
|
||||
]
|
||||
|
||||
action = (
|
||||
@@ -234,6 +235,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"""
|
||||
actions = {
|
||||
# Menu action
|
||||
"action_menu_pollutants": self.open_pollutants,
|
||||
"action_menu_run_adists":self.run_solver_adists,
|
||||
"action_menu_output_kp": self.open_output_kp_adists,
|
||||
"action_menu_config": self.open_configure,
|
||||
@@ -864,6 +866,19 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
# SUB WINDOWS #
|
||||
###############
|
||||
|
||||
def open_pollutants(self):
|
||||
if self.sub_window_exists(
|
||||
PollutantsWindow,
|
||||
data=[self._study, None]
|
||||
):
|
||||
return
|
||||
|
||||
Pollutants = PollutantsWindow(
|
||||
study=self._study,
|
||||
parent=self
|
||||
)
|
||||
Pollutants.show()
|
||||
|
||||
def open_output_kp_adists(self):
|
||||
if self.sub_window_exists(
|
||||
OutputKpAdisTSWindow,
|
||||
|
||||
Reference in new issue
Block a user