Wobuzz/wobuzz/ui/library_dock.py

21 lines
492 B
Python
Raw Permalink Normal View History

2024-12-22 20:52:49 +01:00
#!/usr/bin/python3
2024-12-22 21:20:18 +01:00
from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QDockWidget
from .library import Library
2024-12-22 20:52:49 +01:00
class LibraryDock(QDockWidget):
def __init__(self, parent=None):
super().__init__(parent)
2024-12-22 21:20:18 +01:00
self.setAllowedAreas(
Qt.DockWidgetArea.LeftDockWidgetArea |
Qt.DockWidgetArea.RightDockWidgetArea |
Qt.DockWidgetArea.BottomDockWidgetArea
)
2024-12-22 20:52:49 +01:00
self.library = Library(self)
self.setWidget(self.library)