2024-12-20 18:02:59 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2024-12-22 21:20:18 +01:00
|
|
|
from PyQt6.QtCore import Qt
|
2024-12-24 12:13:24 +01:00
|
|
|
from PyQt6.QtWidgets import QMainWindow, QMenu
|
|
|
|
from .track_control import TrackControl
|
|
|
|
from .settings.settings import Settings
|
2024-12-20 18:02:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MainWindow(QMainWindow):
|
|
|
|
def __init__(self, parent=None):
|
|
|
|
super().__init__(parent)
|
|
|
|
|
2024-12-29 14:31:21 +01:00
|
|
|
self.setWindowTitle("Wobuzz")
|
2024-12-20 18:02:59 +01:00
|
|
|
|
|
|
|
self.menu_bar = self.menuBar()
|
|
|
|
|
2024-12-24 12:13:24 +01:00
|
|
|
self.file_menu = QMenu("&File", self.menu_bar)
|
|
|
|
self.menu_bar.addMenu(self.file_menu)
|
|
|
|
|
|
|
|
self.edit_menu = QMenu("&Edit", self.menu_bar)
|
|
|
|
self.menu_bar.addMenu(self.edit_menu)
|
|
|
|
|
2024-12-24 14:02:55 +01:00
|
|
|
self.settings_action = self.edit_menu.addAction("&Settings")
|
2024-12-24 12:13:24 +01:00
|
|
|
|
|
|
|
self.track_control = TrackControl()
|
|
|
|
self.addToolBar(self.track_control)
|
|
|
|
|
|
|
|
self.settings = Settings()
|
|
|
|
self.settings.hide()
|
|
|
|
self.addDockWidget(Qt.DockWidgetArea.LeftDockWidgetArea, self.settings)
|
2024-12-20 18:02:59 +01:00
|
|
|
|