Merge branch 'bug_531_fixed_not_visible_parental_control_padlock'
[enigma2.git] / lib / python / Components / Renderer / Label.py
1 from Components.VariableText import VariableText
2 from Renderer import Renderer
3
4 from enigma import eLabel
5
6 class Label(VariableText, Renderer):
7         def __init__(self):
8                 Renderer.__init__(self)
9                 VariableText.__init__(self)
10
11         GUI_WIDGET = eLabel
12
13         def connect(self, source):
14                 Renderer.connect(self, source)
15                 self.changed((self.CHANGED_DEFAULT,))
16
17         def changed(self, what):
18                 if what[0] == self.CHANGED_CLEAR:
19                         self.text = ""
20                 else:
21                         self.text = self.source.text
22