Have you tried something like this?value = fpmi.gui.color(238,238,238,255)
word = 'label a'
for i in range(1, 9):
name = "word%s" %(i) #this should produce 'label a1' as the name of the component
event.source.parent.getComponent(name).background = value
I think Bobby’s code should be:value = fpmi.gui.color(238,238,238,255)
word = 'label a'
for i in range(1, 9):
name = "%s%d" %(word, i) #this should produce 'label a1' as the name of the component
event.source.parent.getComponent(name).background = value