mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
refactoring: Apply PamhyrWindow to SL.
This commit is contained in:
1 parent
809a0dd9cb
commit
1a36d78ee2
7 files changed
+114
-161
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user