X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/07d7a4b23312577ccfe7b196169160594ba63601..56ac7a4a764a4251a851778df09967405aa9a930:/lib/python/Components/Button.py diff --git a/lib/python/Components/Button.py b/lib/python/Components/Button.py index f1acb99d..2a60a98f 100644 --- 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 @@ -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)