A
A
Albert2018-11-17 11:25:55
Python
Albert, 2018-11-17 11:25:55

Is it possible in kivy to create nested ids with "local" scope?

As far as I understand, ids in kivy have a "global" scope,
that is, by default, you can write in kv
(1)

BoxLayout
    id:a
    BoxLayout
        id:b

and get them through self.root.ids.aand self.root.ids.b
And you can't write
(2)
BoxLayout
    id:a
    BoxLayout
        id:a

and get them via self.root.ids.aand self.root.ids.a.ids.a
Is it possible in kivy to do something similar to (2)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question