summaryrefslogtreecommitdiff
path: root/nephilim/mpclient.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2010-11-30 20:01:11 +0100
committerAnton Khirnov <anton@khirnov.net>2010-11-30 20:01:11 +0100
commitfe25e1469cddc0c99943d04f15df913d35382f96 (patch)
tree7db1717e71cd2450cff066dcc60fe8757ecfd7a4 /nephilim/mpclient.py
parentb12a662d27b700158e66943253b79c230566e8b9 (diff)
Playlist: add a shuffle button to the toolbar.
Diffstat (limited to 'nephilim/mpclient.py')
-rw-r--r--nephilim/mpclient.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py
index dbacf24..f0cf186 100644
--- a/nephilim/mpclient.py
+++ b/nephilim/mpclient.py
@@ -240,6 +240,11 @@ class MPClient(QtCore.QObject):
Move a song with given src id to position dst.
"""
self._command('moveid', src, dst)
+ def shuffle(self):
+ """
+ Shuffle the current playlist.
+ """
+ self._command('shuffle')
## database ##
def database(self, callback):