aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Renderer/Label.py
blob: 02acb938d4237db56278c3231ef9762a5d913c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from Components.VariableText import VariableText
from Components.GUIComponent import GUIComponent

from enigma import eLabel

class Label(VariableText, GUIComponent):
	def __init__(self):
		GUIComponent.__init__(self)
		VariableText.__init__(self)

	GUI_WIDGET = eLabel

	def connect(self, source):
		source.changed.listen(self.changed)
		self.source = source
		self.changed()

	def changed(self):
		self.text = self.source.text