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:
20 # self.instance.hide()
24 # self.instance.show()
28 def produceHTML(self):
29 return "<input type=\"submit\" text=\"" + self.getText() + "\">\n"
32 def createWidget(self, parent):
34 g.selected.get().append(self.push)
37 def removeWidget(self, w):
38 w.selected.get().remove(self.push)