diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-08-23 13:57:55 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-08-23 20:27:36 +0200 |
commit | e15061c283aea38ee6fffba4e81663550586c6fe (patch) | |
tree | 53e185d9202571f8afa8449ee22275ca9ecfd068 /nephilim/plugins/Notify.py | |
parent | 94b55a0cfc9adb3110ba68e47d4981bea96bd1ed (diff) |
mpclient: change info from function to var.
Diffstat (limited to 'nephilim/plugins/Notify.py')
-rw-r--r-- | nephilim/plugins/Notify.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nephilim/plugins/Notify.py b/nephilim/plugins/Notify.py index 30c6d9b..4a86cfb 100644 --- a/nephilim/plugins/Notify.py +++ b/nephilim/plugins/Notify.py @@ -97,7 +97,12 @@ class winNotify(QtGui.QWidget): self.move((screen.width()-size.width())/2, 100) class Notify(Plugin): - o=None + # public, const + info = 'Show notifications in a popup window.' + + # public, read-only + o = None + DEFAULTS = {'songformat' : '$track - $artist - $title ($album) [$length]', 'timer' : 3000} @@ -113,9 +118,6 @@ class Notify(Plugin): self.mpclient.connect_changed.disconnect(self.on_connect_changed) self.mpclient.state_changed.disconnect(self.onStateChange) self.mpclient.volume_changed.disconnect(self.onVolumeChange) - def getInfo(self): - return "Show interesting events in a popup window." - def onSongChange(self): song = self.mpclient.current_song() if not song: |