How can I script an On Click event to change the color of the button I clicked?
The button they are clicking should change color after they click it? Is there anything wrong with the onAction event of the button itself?
No, I am have trouble setting up a the script to get this done. I chose a on mouse click event.
What do you have so far?
def runAction(self, event):
def runAction(self, event):
self.props.style.backgroundColor = "#FF0000"
But note that this only changes it to the color you declare and never changes it back; subsequent clicks will have no effect.