• marturo

    That did the trick! Thank you.

    posted in Pythonista read more
  • marturo

    @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

    posted in Pythonista read more
  • marturo

    I'm sorry I meant:

    time.sleep(0.25)

    posted in Pythonista read more
  • marturo

    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.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!