Sections: Add stricklers edit shortcut.

mesh
Pierre-Antoine Rouby 2023-06-07 14:53:25 +02:00
parent 11a94d7741
commit 3a2baebcde
1 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,8 @@ from View.Geometry.PlotKPC import PlotKPC
from View.Sections.PlotStricklers import PlotStricklers
from View.Sections.translate import *
from View.Stricklers.Window import StricklersWindow
_translate = QCoreApplication.translate
class SectionsWindow(ASubMainWindow, ListedSubWindow):
@ -129,6 +131,7 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow):
self.find(QAction, "action_add").triggered.connect(self.add)
self.find(QAction, "action_del").triggered.connect(self.delete)
self.find(QAction, "action_sort").triggered.connect(self.sort)
self.find(QAction, "action_edit_stricklers").triggered.connect(self.edit_stricklers)
self.undo_sc.activated.connect(self.undo)
self.redo_sc.activated.connect(self.redo)
@ -219,3 +222,11 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow):
def redo(self):
self._table.redo()
def edit_stricklers(self):
self.strick = StricklersWindow(
study = self._study,
config = self.parent.conf,
parent = self
)
self.strick.show()