remove debug messages
[enigma2.git] / lib / python / Components / Button.py
index f1acb99d8c1ef5aef102a01d5967ec97b1cc7973..2a60a98fa9a241e1f1083653127505442cb4e7cb 100644 (file)
@@ -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
 
@@ -31,3 +31,6 @@ class Button(VariableText, HTMLComponent, GUIComponent):
        def postWidgetCreate(self, instance):
                instance.setText(self.text)
                instance.selected.get().append(self.push)
+
+       def preWidgetRemove(self, instance):
+               instance.selected.get().remove(self.push)