From a8a06df8891022e4ee655e555e28559d016f52ec Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Sun, 7 Apr 2013 08:38:36 -0500 Subject: [PATCH] Restored 'children' list - seems clearer --- doc/sources/guide/widgets.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/sources/guide/widgets.rst b/doc/sources/guide/widgets.rst index 9003bf87f..8a92ec5b4 100644 --- a/doc/sources/guide/widgets.rst +++ b/doc/sources/guide/widgets.rst @@ -55,7 +55,7 @@ The Widget Tree can be manipulated with the following methods: - :meth:`~kivy.uix.widget.Widget.add_widget`: add a widget as a child - :meth:`~kivy.uix.widget.Widget.remove_widget`: remove a widget from the - list of children + `children` list - :meth:`~kivy.uix.widget.Widget.clear_widgets`: remove all children from a widget @@ -66,12 +66,12 @@ For example, if you want to add a button inside a boxlayout, you can do:: layout.add_widget(button) Now, the `button.parent` property will be set to `layout`, and `layout` will -have the button in its list of `children`. To remove the button from the layout:: +have the button in its `children` list. To remove the button from the layout:: layout.remove_widget(button) The `button.parent` will be set to `None`, and `layout` will remove the -button from it's list of `children`. +button from it's `children` list. If you want to remove all the children inside a widget, use the :meth:`~kivy.uix.widget.Widget.clear_widgets` method::