I can't comment yet, so forgive the related post. I'm having the same problem as this person: Empty list of ids in a Kivy GridLayout
Though I've found a workaround as the answerer suggests, by storing references to my gridded objects as they're created, I would like to know if there IS a way to programmatically assign ids to widgets that can later be accessed through the parent's "ids" dictionary.
For example, in the original question, the code adds widgets like this:
for i in range(81):
row = i // 9
col = i % 9
grid.add_widget(TextInput(id = str(row) + "-" + str(col)))
but the id property used here is apparently different than the id property if you assign it in a kv file.
So the expected output is that the ids dict would look something like:
{"1,1": *objectreference@blahblah*, "1,2": *objectreference@blahblah*, .....}
but the actual output is: {}
Is there a way to make that work as expected? Relatedly, is it worth it to find that way/ is it better practice to create your own reference dictionary instead?