Array of widgets?

22 views
Skip to first unread message

klove

unread,
Nov 30, 2015, 7:38:13 AM11/30/15
to Kivy users support
Is it possible to set up an array of widgets, e.g. in .kv file something like

for x in range(1,5):      # <-- not sure how this would work in .kv file anyway?!

Button(x):
    text: "This is button " + x
    on_press: root.BtnPressed(x)

Reply all
Reply to author
Forward
0 new messages