git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for /proc/stb/frontend/X/lnb_sense
[enigma2.git]
/
lib
/
python
/
Components
/
Button.py
diff --git
a/lib/python/Components/Button.py
b/lib/python/Components/Button.py
index 2839a034c449d87bee54d9a37020d2753535825e..2a60a98fa9a241e1f1083653127505442cb4e7cb 100644
(file)
--- a/
lib/python/Components/Button.py
+++ b/
lib/python/Components/Button.py
@@
-1,6
+1,6
@@
-from HTMLComponent import
*
-from GUIComponent import
*
-from VariableText import
*
+from HTMLComponent import
HTMLComponent
+from GUIComponent import
GUIComponent
+from VariableText import
VariableText
from enigma import eButton
from enigma import eButton
@@
-29,4
+29,8
@@
class Button(VariableText, HTMLComponent, GUIComponent):
GUI_WIDGET = eButton
def postWidgetCreate(self, instance):
GUI_WIDGET = eButton
def postWidgetCreate(self, instance):
+ instance.setText(self.text)
instance.selected.get().append(self.push)
instance.selected.get().append(self.push)
+
+ def preWidgetRemove(self, instance):
+ instance.selected.get().remove(self.push)