Added "library_path" setting, added a gui for the settings, changed the window layout and did a bunch of other things.

This commit is contained in:
The Wobbler 2024-12-24 12:13:24 +01:00
parent 259ec72442
commit 6498f43d5f
10 changed files with 124 additions and 37 deletions

View file

@ -15,7 +15,10 @@ class Wobuzz:
self.qt_app = QApplication([])
self.utils = Utils(self)
self.settings = load_dataclass_json(Settings, self.utils.settings_location)
self.settings = load_dataclass_json(Settings, self.utils.settings_location, self, True, True)
self.settings.set_attribute_change_event(self.on_settings_change)
self.player = Player(self)
self.gui = GUI(self)
self.gui_communication = GUICommunication(self)
@ -25,6 +28,11 @@ class Wobuzz:
if track_paths:
self.player.load_tracks_from_paths(track_paths)
def on_settings_change(self, key, value):
self.gui_communication.on_settings_change(key, value)
return True
if __name__ == "__main__":
wobuzz = Wobuzz()