title: Kivy - How to access kivy widget in python?
body: <p>I want to edit a text in a TextInput in kivy but don't know how to, I've tried this code as Ive search in the net but still no luck.</p>
  
  <pre><code>class MainApp(Screen):
      def __init__(self,**kwargs):
          super(MainApp,self).__init__(**kwargs)
      pass
  
  class Forms(BoxLayout): 
      def __init__(self, **kwargs):
          super(Main,self).__init__(**kwargs)
          self.ids.txtSearch.text = "new text"
  
  class Main(App):
      def build(self):
          return root_widget
  
  if __name__ == "__main__":
      Main().run()
  
  ------kivy-------
  
  &lt;Main&gt;:
      TextInput:
          id: txtSearch
  </code></pre>
  
  <p>this is not my whole code but I think those are what matters in the issue</p>
  
  <p>this is the error:</p>
  
  <pre><code>    File "C:\Users\Guest\Documents\Python\Kivy\Project\main.py", line 295, in &lt;module&gt;
   ''')
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1828, in load_string
   self._apply_rule(widget, parser.root, parser.root)
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1985, in _apply_rule
   self.apply(child)
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1872, in apply
   self._apply_rule(widget, rule, rule)
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1986, in _apply_rule
   self._apply_rule(child, crule, rootrule)
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1986, in _apply_rule
   self._apply_rule(child, crule, rootrule)
   File "D:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\lang.py", line 1983, in _apply_rule
   child = cls(__no_builder=True)
   File "C:\Users\Guest\Documents\Python\Kivy\Project\main.py", line 40, in __init__
   self.ids.txtSearch.text = "new text"
    File "kivy\properties.pyx", line 720, in kivy.properties.ObservableDict.__getattr__ (kivy\properties.c:10911)
   AttributeError: 'super' object has no attribute '__getattr__'
  </code></pre>