title: kivy - change things twice with one button click
body: <p>wonder if anyone can help me out.</p>
  
  <p>I am stuck with a problem. I want to change a buttons background_normal TWICE by clicking another button.</p>
  
  <p>So for example first change to yellow than wait 2 seconds (time.sleep(2)) and then change to red.</p>
  
  <p>I tried to make a simple functions that does this. But the problem is that it does not update the first change of the background_normal. It only displays the latest change.</p>
  
  <p>Tried to split it into two functions, one changes it to the first color, the other one changes it to the second color. But still it does not display anything but the latest change.</p>
  
  <p>Is there any possibility to solve this?</p>
  
  <p>Update:
  My code is ~2k lines so i will post a short form of my problem</p>
  
  <pre><code>class Game(FloatLayout):
      def firstaction(self):
          #change button1 to yellow and wait 2 seconds
      def secondaction(self):
          #change button1 to red
  
  
  class GameApp(App):
       def build(self):
          return Game
  </code></pre>
  
  <p>kv file looks something like</p>
  
  <pre><code>button2:
      on_press: Game.firstaction
      on_press: Game.secondaction
  </code></pre>