Progress bar shows current playback time and total playback time
git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@16 1daee41c-8060-4895-b1f0-2197c00d777a
This commit is contained in:
parent
acd8308311
commit
0292895823
|
@ -41,7 +41,7 @@ class Operations:
|
||||||
def markProgress(self,widget,data):
|
def markProgress(self,widget,data):
|
||||||
time = self.song.curTime()
|
time = self.song.curTime()
|
||||||
widget.set_fraction(float(self.song.current)/float(self.song.total))
|
widget.set_fraction(float(self.song.current)/float(self.song.total))
|
||||||
widget.set_text(time.toStr())
|
widget.set_text(time.toStr()+" / "+self.song.info.length.toStr())
|
||||||
#print float(self.song.current)/float(self.song.total)
|
#print float(self.song.current)/float(self.song.total)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue