mirror of https://github.com/kivy/kivy.git
doc: removed reference to internal ObservableDict class
This commit is contained in:
parent
8f64f9dd1a
commit
4039831e08
|
@ -344,9 +344,8 @@ In your python code:
|
||||||
self.ids.loki.text = "loki: >_<!!!"
|
self.ids.loki.text = "loki: >_<!!!"
|
||||||
|
|
||||||
When your kv file is parsed, kivy collects all the widgets tagged with id's
|
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`
|
and places them in this `self.ids` dictionary type property. That means you
|
||||||
property. That means you can also iterate over these widgets and access them
|
can also iterate over these widgets and access them dictionary style::
|
||||||
dictionary style::
|
|
||||||
|
|
||||||
for key, val in self.ids.items():
|
for key, val in self.ids.items():
|
||||||
print("key={0}, val={1}".format(key, val))
|
print("key={0}, val={1}".format(key, val))
|
||||||
|
|
Loading…
Reference in New Issue