mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Section: Add code base.
This commit is contained in:
1 parent
3b2a41e0e9
commit
d6c1633b28
10 files changed
+968
-2
No files matched your search
@@ -25,6 +25,7 @@ from View.Geometry.Window import GeometryWindow
|
||||
from View.BoundaryCondition.Window import BoundaryConditionWindow
|
||||
from View.LateralContribution.Window import LateralContributionWindow
|
||||
from View.Stricklers.Window import StricklersWindow
|
||||
from View.Sections.Window import SectionsWindow
|
||||
|
||||
from Model.Study import Study
|
||||
|
||||
@@ -127,6 +128,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"action_toolBar_lateral_contrib": self.open_lateral_contrib,
|
||||
"action_toolBar_spills": lambda: self.open_dummy("Deversement"),
|
||||
"action_toolBar_stricklers": self.open_stricklers,
|
||||
"action_toolBar_sections": self.open_sections,
|
||||
"action_toolBar_building": lambda: self.open_dummy("Ouvrages"),
|
||||
}
|
||||
|
||||
@@ -341,6 +343,13 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
)
|
||||
self.strick.show()
|
||||
|
||||
def open_sections(self):
|
||||
self.sections = SectionsWindow(
|
||||
study = self.model,
|
||||
parent=self
|
||||
)
|
||||
self.sections.show()
|
||||
|
||||
# TODO: Delete me !
|
||||
###############
|
||||
# DUMMY STUFF #
|
||||
|
||||
Reference in new issue
Block a user