doc: added note about using the self.ids ObservablDict

This commit is contained in:
Zen-CODE 2014-07-15 15:06:46 +02:00
parent 7771f97b6f
commit 894554aa48
1 changed files with 4 additions and 0 deletions

View File

@ -343,6 +343,10 @@ In your python code:
self.ids.hulk.text = "hulk: puny god!"
self.ids.loki.text = "loki: >_<!!!"
When your kv file is parsed, kivy collects all the widgets tagged with id's
and places them in this `self.ids` :class:`~kivy.properties.ObservableDict`
property. That means you can iterate over these widgets and access them
dictionary style.
Dynamic Classes
---------------