I have this directory: items { "one": {"units": " ", "colored": "not"}, "two": {"units": " ", "colored": "yes"}, "three": {"units": " ", "colored": "yes", ...}
each item has a button. When that button is clicked, unit might be incremented. If "colored": "yes" user is asked for a color. If user introduces one, a new key {"color": "anycolor"} will be added.
How can I write a procedure to process button.click´s
Sorry, I don't understand.
with "et value for key "keyX" I am asking for a value ougth to be there. but "in dictionary make a dictionary {"keyX": true, "keyY": false}" I am just creating it (supossed being before).
May be I need a tutorial about dictionaries. Do you know anyone i can read?, please.