git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bug_140_move_WirelessLan_and__NetworkWizard_to_Enigma2' into experimental
[enigma2.git]
/
lib
/
python
/
Components
/
Renderer
/
Label.py
diff --git
a/lib/python/Components/Renderer/Label.py
b/lib/python/Components/Renderer/Label.py
index 02acb938d4237db56278c3231ef9762a5d913c7f..e660de1b37fab1b4568cbe062d15dbdb0196ccc5 100644
(file)
--- a/
lib/python/Components/Renderer/Label.py
+++ b/
lib/python/Components/Renderer/Label.py
@@
-1,19
+1,22
@@
from Components.VariableText import VariableText
from Components.VariableText import VariableText
-from
Components.GUIComponent import GUIComponent
+from
Renderer import Renderer
from enigma import eLabel
from enigma import eLabel
-class Label(VariableText,
GUIComponent
):
+class Label(VariableText,
Renderer
):
def __init__(self):
def __init__(self):
-
GUIComponent
.__init__(self)
+
Renderer
.__init__(self)
VariableText.__init__(self)
GUI_WIDGET = eLabel
def connect(self, source):
VariableText.__init__(self)
GUI_WIDGET = eLabel
def connect(self, source):
- source.changed.listen(self.changed)
- self.source = source
- self.changed()
+ Renderer.connect(self, source)
+ self.changed((self.CHANGED_DEFAULT,))
+
+ def changed(self, what):
+ if what[0] == self.CHANGED_CLEAR:
+ self.text = ""
+ else:
+ self.text = self.source.text
- def changed(self):
- self.text = self.source.text