That did the trick! Thank you.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by marturo
-
RE: Provide button press feedback
@cvp I tried that, but it still doesn't refresh the screen. I don't know if it makes any difference, but I'm working with a subview
-
Provide button press feedback
Hello,
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'
time.delay(0.25)
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?
Thank you.