OOPing it more: Removed gui_communication/menu_bar.py

This commit is contained in:
The Wobbler 2025-01-25 15:33:38 +01:00
parent 5e5521bc67
commit 07e53ef2e7
4 changed files with 7 additions and 22 deletions

View file

@ -7,9 +7,11 @@ from .settings import Settings
class MainWindow(QMainWindow):
def __init__(self, parent=None):
def __init__(self, app, parent=None):
super().__init__(parent)
self.app = app
self.setWindowTitle("Wobuzz")
self.menu_bar = self.menuBar()
@ -25,7 +27,9 @@ class MainWindow(QMainWindow):
self.track_control = TrackControl()
self.addToolBar(self.track_control)
self.settings = Settings()
self.settings = Settings(app)
self.settings.hide()
self.addDockWidget(Qt.DockWidgetArea.LeftDockWidgetArea, self.settings)
self.settings_action.triggered.connect(self.settings.show)