diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-03-05 09:26:40 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-03-05 09:26:40 +0100 |
commit | 10e48926b835cd81c5df49af27a3427622d53dd7 (patch) | |
tree | 1a2af46f7351d9300c445ca0640f754f5843571f /nephilim | |
parent | a79fa5cb820a8bfeb698de96b134e6d1303bdf04 (diff) |
winMain: alway show APPNAME in window title.
Diffstat (limited to 'nephilim')
-rw-r--r-- | nephilim/winMain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nephilim/winMain.py b/nephilim/winMain.py index 2faa615..6ba3595 100644 --- a/nephilim/winMain.py +++ b/nephilim/winMain.py @@ -255,11 +255,11 @@ class winMain(QtGui.QMainWindow): def update_state_messages(self, params = None): song = self.mpclient.getCurrentSong() if song and self.mpclient.isPlaying(): - self.setWindowTitle(song.getTitle() + " by " + song.getArtist()) - self.statuslabel.setText("Now playing " + song.getTitle() + " by " + song.getArtist() + " on " + song.getAlbum()) + self.setWindowTitle('%s by %s - %s'%(song.getTitle(), song.getArtist(), APPNAME)) + self.statuslabel.setText('Now playing %s by %s on %s'%(song.getTitle(), song.getArtist(),song.getAlbum())) else: self.setWindowTitle(APPNAME) - self.statuslabel.setText("") + self.statuslabel.setText('') def on_time_slider_change(self): self.mpclient.seek(self.time_slider.value()) |