git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VIDEO_CLEAR_BUFFER isn't required.
[enigma2.git]
/
lib
/
python
/
Components
/
Button.py
diff --git
a/lib/python/Components/Button.py
b/lib/python/Components/Button.py
index d9226b6dbeaf516a9d1e2ad928cc7c1805fe7149..f1acb99d8c1ef5aef102a01d5967ec97b1cc7973 100644
(file)
--- a/
lib/python/Components/Button.py
+++ b/
lib/python/Components/Button.py
@@
-4,7
+4,7
@@
from VariableText import *
from enigma import eButton
from enigma import eButton
-class Button(
HTMLComponent, GUIComponent, VariableTex
t):
+class Button(
VariableText, HTMLComponent, GUIComponen
t):
def __init__(self, text="", onClick = [ ]):
GUIComponent.__init__(self)
VariableText.__init__(self)
def __init__(self, text="", onClick = [ ]):
GUIComponent.__init__(self)
VariableText.__init__(self)
@@
-17,23
+17,17
@@
class Button(HTMLComponent, GUIComponent, VariableText):
return 0
def disable(self):
return 0
def disable(self):
-# self.instance.hide()
pass
def enable(self):
pass
def enable(self):
-# self.instance.show()
pass
# html:
def produceHTML(self):
return "<input type=\"submit\" text=\"" + self.getText() + "\">\n"
pass
# html:
def produceHTML(self):
return "<input type=\"submit\" text=\"" + self.getText() + "\">\n"
-# GUI:
- def createWidget(self, parent):
- g = eButton(parent)
- g.selected.get().append(self.push)
- return g
-
- def removeWidget(self, w):
- w.selected.get().remove(self.push)
+ GUI_WIDGET = eButton
+ def postWidgetCreate(self, instance):
+ instance.setText(self.text)
+ instance.selected.get().append(self.push)