That did the trick! Thank you.
Posts made by marturo
Provide button press feedback
I'm working on a view where I have several buttons and a text above them. Every time the user presses a button a line is saved to a csv file with the button that was pressed and the time. The on top of the screen changes every time a button is pressed, but sometimes the text is so similar to the previous one that it's hard to see the change.
The entire program is working fine; however, it's hard to see whether the button was actually pressed.
I tried to add the following piece of code to the action function to change the color of the button temporarily to gray and back, but it doesn't work:
sender.bg_color = 'gray'
sender.bg_color = 'green'
It seems that the screen only refreshes after the button has changed back to green.
Is there a way to force a screen refresh after I change the color to gray? or is there a better way to provide a visual cue that the button has been pressed and the action has taken place?