Wobuzz/wobuzz/gui.py

23 lines
709 B
Python
Raw Normal View History

2024-12-20 18:02:59 +01:00
#!/usr/bin/python3
2024-12-21 19:00:06 +01:00
from PyQt6.QtCore import QTimer
2024-12-20 18:02:59 +01:00
from ui.main_window import MainWindow
class GUI:
def __init__(self, app):
self.app = app
2024-12-20 18:02:59 +01:00
self.window = MainWindow()
self.connect()
2024-12-21 19:00:06 +01:00
self.window.show()
def connect(self):
self.window.main_container.track_control.previous_button.triggered.connect(self.app.player.previous_track)
self.window.main_container.track_control.toggle_play_button.triggered.connect(self.app.player.toggle_playing)
self.window.main_container.track_control.stop_button.triggered.connect(self.app.player.stop)
2024-12-22 17:20:18 +01:00
self.window.main_container.track_control.next_button.triggered.connect(self.app.player.next_track)
2024-12-21 19:00:06 +01:00