Got shitty basic features working.

This commit is contained in:
The Wobbler 2024-12-21 19:00:06 +01:00
parent ce254c8b54
commit 45d97f5aeb
6 changed files with 97 additions and 29 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/python3
from PyQt6.QtCore import QTimer
from ui.main_window import MainWindow
@ -9,12 +10,13 @@ class GUI:
self.window = MainWindow()
self.window.show()
self.connect()
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)
self.window.main_container.track_control.next_button.triggered.connect(self.app.player.skip_current)