forked from Wobbl/Wobuzz
OOPed everything a little more.
This commit is contained in:
parent
19b6f4dcaa
commit
8811ba7ab4
5 changed files with 113 additions and 69 deletions
|
@ -113,16 +113,6 @@ class Player:
|
|||
|
||||
self.app.gui_communication.on_track_start()
|
||||
|
||||
def toggle_playing(self):
|
||||
if self.playing and self.paused:
|
||||
self.unpause()
|
||||
|
||||
elif self.playing:
|
||||
self.pause()
|
||||
|
||||
else:
|
||||
self.start_playing()
|
||||
|
||||
def stop(self):
|
||||
self.music_channel.stop()
|
||||
self.track_progress.stop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue