aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Button.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Button.py')
-rw-r--r--lib/python/Components/Button.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Button.py b/lib/python/Components/Button.py
index 25346b42..2a60a98f 100644
--- a/lib/python/Components/Button.py
+++ b/lib/python/Components/Button.py
@@ -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)