title: How to access a widget from one screen inside another screen in kivy
body: <p>How do I access a widget from screen1 and make changes to it in screen2 and also return screen1 back to it initial state(like I just run the code).
  I have commented out some code that is not working.</p>
  <pre><code>from kivy.app import App
  from kivy.uix.label import Label
  from kivy.uix.button import Button
  from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
  
  
  class ScreenManagement(ScreenManager):
      def __init__(self, **kwargs):
          super(ScreenManagement, self).__init__(**kwargs)
  
  class Screen2(Screen):
      def __init__(self, **kwargs):
          super(Screen2, self).__init__(**kwargs)
          self.retry = Button(text='retry', font_size=15, size_hint=(.26, .26),
                              pos_hint={'center_x': .5, 'center_y': .32}, on_press=self.retrying,
                              background_color=(0, 0, 1, 1))
          self.add_widget(self.retry)
  
      def retrying(self, *args):
          self.manager.current = 'screen1'
          # it should change the text in screen1 to &quot;i am back to screen1, thanks you&quot;
          #self.welc.text=&quot; i am back to screen1, thank you&quot;
          # it should change the button color back to it normal state
          #self.goto.background_color='normal state'
  
  
  class Screen1(Screen):
      def __init__(self, **kwargs):
          super(Screen1, self).__init__(**kwargs)
          self.welc = Label(text='hi there welcome to my first screen', font_size=15, size_hint=(.26, .26),
                            pos_hint={'center_x': .5, 'center_y': .7})
          self.add_widget(self.welc)
  
          self.goto = Button(text='next screen', font_size=15, size_hint=(.2, .2),
                         pos_hint={'center_x': .5, 'center_y': .32}, on_press=self.going, background_color=(0, 0, 1, 1))
          self.add_widget(self.goto)
  
      def going(self, *args):
          self.goto.background_color=(1,0,0,1)
          self.manager.current = 'screen2'
  
  class Application(App):
      def build(self):
          sm = ScreenManagement(transition=FadeTransition())
          sm.add_widget(Screen1(name='screen1'))
          sm.add_widget(Screen2(name='screen2'))
          return sm
  
  
  if __name__ == &quot;__main__&quot;:
      Application().run()
  </code></pre>
  <p>My question is this:</p>
  <ol>
  <li>how do i change the text in screen1 when the retry button is pressed.</li>
  <li>How do i return screen1 back to it initial state after the retry button is pressed so that the &quot;next screen&quot; button color changes back to blue</li>
  </ol>