From 02fc05ba69c404331a76ef29ddd77f6430ee7d51 Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Fri, 27 Jun 2014 17:53:41 +0200 Subject: [PATCH] doc: clarified the return values of the "build" method --- kivy/app.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kivy/app.py b/kivy/app.py index 0e215344d..512173189 100644 --- a/kivy/app.py +++ b/kivy/app.py @@ -474,10 +474,9 @@ class App(EventDispatcher): #: Options passed to the __init__ of the App self.options = kwargs - #: Instance to the :class:`~kivy.config.ConfigParser` of the - #: application - #: configuration. Can be used to query some config token in the - #: build() + #: Returns an instance of the :class:`~kivy.config.ConfigParser` for + #: the application configuration. You can use this to query some config + #: tokens in the :meth:`build` method. self.config = None #: The *root* widget returned by the :meth:`build` method or by the @@ -485,7 +484,7 @@ class App(EventDispatcher): self.root = None def build(self): - '''Initializes the application; will be called only once. + '''Initializes the application; it will be called only once. If this method returns a widget (tree), it will be used as the root widget and added to the window.