Anpassung an den Wrappern für sn_plan41

This commit is contained in:
2026-01-08 17:13:51 +01:00
parent f88b5da51f
commit b805f78f02
26 changed files with 401 additions and 125 deletions

View File

@@ -6,6 +6,17 @@ Basis-Dockwidget für alle LNO-Module.
from sn_basis.functions.qt_wrapper import QDockWidget, QTabWidget
from sn_basis.functions.message_wrapper import warning, error
from sn_basis.functions.qt_wrapper import (
QDockWidget,
QTabWidget,
Qt,
DockWidgetMovable,
DockWidgetFloatable,
DockWidgetClosable,
DockAreaLeft,
DockAreaRight,
)
class BaseDockWidget(QDockWidget):
@@ -23,6 +34,19 @@ class BaseDockWidget(QDockWidget):
def __init__(self, parent=None, subtitle=""):
super().__init__(parent)
# -----------------------------------------------------
# Dock-Konfiguration (WICHTIG)
# -----------------------------------------------------
self.setFeatures(
DockWidgetMovable
| DockWidgetFloatable
| DockWidgetClosable
)
self.setAllowedAreas(
DockAreaLeft
| DockAreaRight
)
# -----------------------------------------------------
# Titel setzen