git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
honor horizontal alignment also when a mark is present
[enigma2.git]
/
lib
/
python
/
Components
/
Renderer
/
PositionGauge.py
diff --git
a/lib/python/Components/Renderer/PositionGauge.py
b/lib/python/Components/Renderer/PositionGauge.py
index abc9b7ff8ff90fd02112504f3bb0497049223a91..4b49501f7171e3eead576ef8e83a20b83f07a8de 100644
(file)
--- a/
lib/python/Components/Renderer/PositionGauge.py
+++ b/
lib/python/Components/Renderer/PositionGauge.py
@@
-11,12
+11,15
@@
class PositionGauge(Renderer):
GUI_WIDGET = ePositionGauge
def postWidgetCreate(self, instance):
GUI_WIDGET = ePositionGauge
def postWidgetCreate(self, instance):
- self.changed()
+ self.changed(
(self.CHANGED_DEFAULT,)
)
self.cutlist_changed()
instance.setInOutList(self.__cutlist)
self.cutlist_changed()
instance.setInOutList(self.__cutlist)
- def changed(self):
- (self.length, self.position) = (self.source.length or 0, self.source.position or 0)
+ def changed(self, what):
+ if what[0] == self.CHANGED_CLEAR:
+ (self.length, self.position) = 0
+ else:
+ (self.length, self.position) = (self.source.length or 0, self.source.position or 0)
def cutlist_changed(self):
self.cutlist = self.source.cutlist or [ ]
def cutlist_changed(self):
self.cutlist = self.source.cutlist or [ ]