Mercurial > boomslang
changeset 572:e393954e3749 pyntnclick
Move get_current_playlist onto sound object
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 15:53:14 +0200 |
parents | 20e296d4a3a5 |
children | 85f1ab8af698 |
files | pyntnclick/sound.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pyntnclick/sound.py Sat Feb 11 15:48:04 2012 +0200 +++ b/pyntnclick/sound.py Sat Feb 11 15:53:14 2012 +0200 @@ -111,6 +111,10 @@ def change_playlist(self, new_playlist): albow.music.change_playlist(new_playlist) + def get_current_playlist(): + if albow.music.music_enabled and albow.music.current_playlist: + return albow.music.current_playlist + def start_next_music(): """Start playing the next item from the current playlist immediately.""" @@ -124,9 +128,5 @@ albow.music.current_music = next_music -def get_current_playlist(): - if albow.music.music_enabled and albow.music.current_playlist: - return albow.music.current_playlist - # Monkey patch albow.music.start_next_music = start_next_music