2024-12-20 18:02:59 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2024-12-22 21:20:18 +01:00
|
|
|
from PyQt6.QtCore import Qt
|
|
|
|
from PyQt6.QtWidgets import QMainWindow, QMenu, QDockWidget
|
|
|
|
from .main_container import MainContainer
|
|
|
|
from .library_dock import LibraryDock
|
2024-12-20 18:02:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MainWindow(QMainWindow):
|
|
|
|
def __init__(self, parent=None):
|
|
|
|
super().__init__(parent)
|
|
|
|
|
|
|
|
self.setWindowTitle("WoBuzz")
|
|
|
|
|
|
|
|
self.menu_bar = self.menuBar()
|
|
|
|
self.menu_bar.addMenu(QMenu("&File", self))
|
|
|
|
|
|
|
|
self.main_container = MainContainer(self)
|
|
|
|
self.setCentralWidget(self.main_container)
|
|
|
|
|
2024-12-22 21:20:18 +01:00
|
|
|
self.library_dock = LibraryDock()
|
|
|
|
self.library_dock.setFeatures(
|
|
|
|
QDockWidget.DockWidgetFeature.DockWidgetMovable |
|
|
|
|
QDockWidget.DockWidgetFeature.DockWidgetFloatable
|
|
|
|
)
|
|
|
|
self.addDockWidget(Qt.DockWidgetArea.BottomDockWidgetArea, self.library_dock)
|
|
|
|
|
2024-12-23 17:12:21 +01:00
|
|
|
|