Wobuzz/wobuzz/ui/library_dock.py

19 lines
396 B
Python
Raw 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):
2025-01-25 21:46:48 +01:00
def __init__(self, library, parent=None):
2024-12-22 20:52:49 +01:00
super().__init__(parent)
2025-01-25 21:46:48 +01:00
self.library = library
self.setAcceptDrops(True)
2025-01-25 21:46:48 +01:00
self.library_widget = Library(library, self)
self.setWidget(self.library_widget)
2024-12-22 20:52:49 +01:00