1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 from enigma import eButton
7 class Button(HTMLComponent, GUIComponent, VariableText):
8 def __init__(self, text="", onClick = [ ]):
9 GUIComponent.__init__(self)
10 VariableText.__init__(self)
12 self.onClick = onClick
15 for x in self.onClick:
26 def produceHTML(self):
27 return "<input type=\"submit\" text=\"" + self.getText() + "\">\n"
30 def createWidget(self, parent):
32 g.selected.get().append(self.push)
35 def removeWidget(self, w):
36 w.selected.get().remove(self.push)