refactoring: Apply PamhyrWindow to SL.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-09-26 09:34:26 +02:00
1 parent 809a0dd9cb
commit 1a36d78ee2
7 files changed
+114 -161

No files matched your search

+9 -6
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from View.ASubWindow import ASubWindow
from View.ListedSubWindow import ListedSubWindow
from View.Tools.PamhyrWindow import PamhyrDialog
from PyQt5.QtGui import (
QKeySequence,
@@ -20,12 +19,16 @@ from View.SedimentLayers.Reach.translate import *
_translate = QCoreApplication.translate
class SLDialog(ASubWindow, ListedSubWindow):
def __init__(self, title="SL", study=None, parent=None):
self._study = study
class SLDialog(PamhyrDialog):
_pamhyr_ui = "SLDialog"
_pamhyr_name = "SL"
def __init__(self, study=None, config=None, parent=None):
super(SLDialog, self).__init__(
name=title, ui="SLDialog", parent=parent
title = self._pamhyr_name,
study = study,
config = config,
parent=parent
)
self.setup_combobox()