forked from Wobbl/Wobuzz
Added opening of files via command line and added simple controls.
This commit is contained in:
parent
d089a57151
commit
ce254c8b54
6 changed files with 135 additions and 4 deletions
|
@ -4,7 +4,17 @@ from ui.main_window import MainWindow
|
|||
|
||||
|
||||
class GUI:
|
||||
def __init__(self):
|
||||
def __init__(self, app):
|
||||
self.app = app
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue