2024-12-20 18:02:59 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from PyQt6.QtWidgets import QApplication
|
2024-12-23 17:12:21 +01:00
|
|
|
from wobbl_tools.data_file import load_dataclass_json
|
|
|
|
from settings import Settings
|
2024-12-21 20:50:09 +01:00
|
|
|
from utils import Utils
|
2024-12-22 00:03:08 +01:00
|
|
|
from player.player import Player
|
2024-12-21 19:00:06 +01:00
|
|
|
from gui import GUI
|
2024-12-22 19:09:37 +01:00
|
|
|
from gui_communication.gui_communication import GUICommunication
|
2024-12-20 18:02:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Wobuzz:
|
|
|
|
def __init__(self):
|
2024-12-21 16:07:27 +01:00
|
|
|
self.qt_app = QApplication([])
|
2024-12-20 18:02:59 +01:00
|
|
|
|
2024-12-21 20:50:09 +01:00
|
|
|
self.utils = Utils(self)
|
2024-12-23 17:12:21 +01:00
|
|
|
self.settings = load_dataclass_json(Settings, self.utils.settings_location)
|
2024-12-22 16:11:43 +01:00
|
|
|
self.player = Player(self)
|
2024-12-21 16:07:27 +01:00
|
|
|
self.gui = GUI(self)
|
2024-12-21 19:00:06 +01:00
|
|
|
self.gui_communication = GUICommunication(self)
|
2024-12-20 18:02:59 +01:00
|
|
|
|
2024-12-22 16:11:43 +01:00
|
|
|
track_paths = sys.argv[1:]
|
|
|
|
|
|
|
|
if track_paths:
|
|
|
|
self.player.load_tracks_from_paths(track_paths)
|
|
|
|
|
2024-12-20 18:02:59 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
wobuzz = Wobuzz()
|
|
|
|
sys.exit(wobuzz.qt_app.exec())
|