mirror of https://github.com/kivy/kivy.git
widget: allow parent to be None (in case of remove_widget for eg)
This commit is contained in:
parent
65274b1a8b
commit
49f5bab67f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue