omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. marturo

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    marturo

    @marturo

    0
    Reputation
    274
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    marturo Unfollow Follow

    Latest posts made by marturo

    • RE: Provide button press feedback

      That did the trick! Thank you.

      posted in Pythonista
      marturo
      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

      posted in Pythonista
      marturo
      marturo
    • RE: Provide button press feedback

      I'm sorry I meant:

      time.sleep(0.25)

      posted in Pythonista
      marturo
      marturo
    • 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.

      posted in Pythonista
      marturo
      marturo