mirror of https://github.com/kivy/kivy.git
doc: clarified the return values of the "build" method
This commit is contained in:
parent
b20bb5f7fb
commit
02fc05ba69
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue