+ if self.showHours:
+ return sign + "%d:%02d:%02d:%03d" % ((l/3600/90000), (l/90000)%3600/60, (l/90000)%60, (l%90000)/90)
+ else:
+ return sign + "%d:%02d:%03d" % ((l/60/90000), (l/90000)%60, (l%90000)/90)
+
+ # range/value are for the Progress renderer
+ range = 10000
+
+ @cached
+ def getValue(self):
+ pos = self.position
+ len = self.length
+ if pos is None or len is None or len <= 0:
+ return None
+ return pos * 10000 / len