From 49f5bab67fd68908006ae5fdeb4c0ce6f23b3969 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Tue, 9 Nov 2010 19:29:01 +0100 Subject: [PATCH] widget: allow parent to be None (in case of remove_widget for eg) --- kivy/uix/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/uix/widget.py b/kivy/uix/widget.py index 76165657e..243f84c1d 100644 --- a/kivy/uix/widget.py +++ b/kivy/uix/widget.py @@ -336,7 +336,7 @@ class Widget(EventDispatcher): children = ListProperty([]) #: Parent - parent = ObjectProperty(None) + parent = ObjectProperty(None, allownone=True) #: Size hint X size_hint_x = NumericProperty(1, allownone=True)