I have a kv file with several widgets, their IDs being numbers (in string representation). Let's say it's numbers from 1 - 10.
Can I somehow access those widgets from Python with a loop by using their ID in the method call (which is an integer in string form) instead of using the ID name explicitly? For example (as illustration, it doesn't really work), I would like to use something like:
for i in range (1, 11)
self.root.ids.str(i).text = str(i*5)
instead of:
self.root.ids.1.text = str(5)
self.root.ids.2.text = str(10)
self.root.ids.3.text = str(15)
... etc
The reason is this list of widgets can grow large. Also the ranges (slices) I want to access can vary.