title: How to clear a TextInput with a Button
body: <p>I am currently working on a mental health app and I have come across a problem. I need a TextInput to be cleared whenever I hit a certain button but I am not sure exactly how to do so.</p>
  
  <p>For reference this is the TextInput:</p>
  
  <pre><code>TextInput:
          id: text
          font_size: (root.width**2 + root.height**2) / 15**4
          multiline: False
          pos_hint: {"x": 0.1 , "top":0.8}
          size_hint: 0.8, 0.7
  </code></pre>
  
  <p>And the Button that will trigger it:</p>
  
  <pre><code>Button:
          pos_hint: {"x": 0.0, "y": 0.95}
          size_hint: 0.2, 0.05
          text: 'Enter'
          background_color: 0, 0, 0, 1
          on_press: text.delete_selection()
  </code></pre>
  
  <p>The Python code for this section is:</p>
  
  <pre><code>class Screen_One(Screen):
      text = ObjectProperty(None)
  
      def delete_selection(self, from_undo=False):
          if not self._selection:
              return ("")
  </code></pre>
  
  <p>As you can see, I attempted to try something but it still shows no effect and it won't clear the textinput.</p>
  
  <p>Can someone please help me?
  Thanks in advance!</p>