some small changes needed for build scroll support in eventview window
[enigma2.git] / lib / python / Components / Header.py
1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
4
5 from enigma import eLabel
6
7 class Header(HTMLComponent, GUIComponent, VariableText):
8
9         def __init__(self, message):
10                 GUIComponent.__init__(self)
11                 VariableText.__init__(self)
12                 self.setText(message)
13         
14         def produceHTML(self):
15                 return "<h2>" + self.getText() + "</h2>\n"
16
17         def createWidget(self, parent):
18                 g = eLabel(parent)
19                 return g
20