From 8c2a83d6b2a60b2bd408ccdc6d5afd6da506912f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 14 Feb 2008 20:40:05 +0000 Subject: unlink some cyclic dependencys to get garbage collection working --- lib/python/Components/Button.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components/Button.py') 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) -- cgit v1.2.3