Wobuzz/wobuzz/ui/main_window.py

32 lines
866 B
Python
Raw Permalink Normal View History

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
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)
self.setWindowTitle("Wobuzz")
2024-12-20 18:02:59 +01:00
self.menu_bar = self.menuBar()
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)
self.settings_action = self.edit_menu.addAction("&Settings")
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