diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-03-06 10:31:54 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-03-06 10:31:54 +0100 |
commit | c1e234beae44134d567fb3d8915a77649379fd63 (patch) | |
tree | c0662304dc023a9213b1b2466244473623def741 /nephilim/winMain.py | |
parent | 4bb2fd69ab26566f93815dae4aef2679c57b9d05 (diff) |
mpclient: get rid of CamelCase everywhere.
Diffstat (limited to 'nephilim/winMain.py')
-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 6ba3595..934ecf1 100644 --- a/nephilim/winMain.py +++ b/nephilim/winMain.py @@ -253,8 +253,8 @@ class winMain(QtGui.QMainWindow): self.setStatus('Updating the database. Please wait ...') def update_state_messages(self, params = None): - song = self.mpclient.getCurrentSong() - if song and self.mpclient.isPlaying(): + song = self.mpclient.current_song() + if song and self.mpclient.is_playing(): 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: @@ -265,7 +265,7 @@ class winMain(QtGui.QMainWindow): self.mpclient.seek(self.time_slider.value()) def on_song_change(self, params): - status = self.mpclient.getStatus() + status = self.mpclient.status() self.time_slider.setMaximum(status['length']) self.time_slider.setEnabled(True) self.time_label.duration = sec2min(status['length']) |