widget: allow parent to be None (in case of remove_widget for eg)

This commit is contained in:
Mathieu Virbel 2010-11-09 19:29:01 +01:00
parent 65274b1a8b
commit 49f5bab67f
1 changed files with 1 additions and 1 deletions

View File

@ -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)