Wobuzz/wobuzz/gui.py

21 lines
678 B
Python
Raw Normal View History

2024-12-20 18:02:59 +01:00
#!/usr/bin/python3
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.window.show()
self.connect()
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)