title: Kivy: resetting toggle buttons to "normal" on re-entering screen
body: <p>I'm working on a kivy app that includes a screen with toggle buttons in it. I'd like to know how to reset the state of any of these buttons that happen to be "down" to "normal" every time the user enters that screen. </p>
  
  <p>In order to keep the GUI code separate from the rest of the application, I'd prefer to be able to reset the buttons from within my screens.kv file. Is there a way of doing so? </p>
  
  <p>Here's the releveant section of my screens.kv:</p>
  
  <pre><code># Solution code, based on przyczajony's answer:
  &lt;ScreenThree&gt;:
      on_enter:  
          button1.state = 'normal'
          button2.state = 'normal'
          button3.state = 'normal'
          button4.state = 'normal'
          button5.state = 'normal'
  #End of solution code, beginning of original question code:
  
      BoxLayout:
          orientation: "vertical"
          size: root.size
          spacing: 20
          padding: 20
  
          Label:
              id: label
              text: root.explanationText
          ToggleButton:
              id: button1
              text: root.button1Text
              on_state: 
                  if self.state == 'normal': root.button1Up()
                  else: root.button1Down()
          ToggleButton:
              id: button2
              text: root.button2Text
              on_state: 
                  if self.state == 'normal': root.button2Up()
                  else: root.button2Down()          
          ToggleButton:
              id: button3
              text: root.button3Text
              on_state:
                  if self.state == 'normal': root.button3Up()
                  else: root.button3Down()
          ToggleButton:
              id: button4
              text: root.button4Text
              on_state: 
                  if self.state == 'normal': root.button4Up()
                  else: root.button4Down()           
          ToggleButton:
              id: button5
              text: root.button5Text
              on_state: 
                  if self.state == 'normal': root.button5Up()
                  else: root.button5Down() 
          Button:
              id: button6
              text: root.button6Text
              on_release: root.manager.current = "screen4"
  </code></pre>
  
  <p>Thanks in advance for your time and wisdom.</p>