title: Getting started with Kivy: getting user input using Kivy
body: <p>I would like to start with Kivy since I code in Python but I find it really hard! Can you lead to a good explanation of how it works?
  For example even this looks quite foggy (that is the second example of their website).</p>
  
  <pre><code>from kivy.app import App
  from kivy.uix.gridlayout import GridLayout
  from kivy.uix.label import Label
  from kivy.uix.textinput import TextInput
  
  
  class LoginScreen(GridLayout):
  
      def __init__(self, **kwargs):
          super(LoginScreen, self).__init__(**kwargs)
          self.cols = 2
          self.add_widget(Label(text='User Name'))
          self.username = TextInput(multiline=False)
          self.add_widget(self.username)
          self.add_widget(Label(text='password'))
          self.password = TextInput(password=True, multiline=False)
          self.add_widget(self.password)
  
  
  class MyApp(App):
  
      def build(self):
          return LoginScreen()
  
  
  if __name__ == '__main__':
      MyApp().run()
  </code></pre>
  
  <p>I would like to start with a basic App that asks user for input and display something created from it.
  For example in basic Python without any GUI it could be:</p>
  
  <pre><code>def hex_enc(text_input):
      return text_input.encode('hex')
  
  def hex_dec(text_input):
      return text_input.decode('hex')
  
  while True:
      text_input = raw_input('Input  : ')
      mode = raw_input('Mode   : ').lower()
      if ('encrypt' in mode):
          print hex_enc(text_input)
      else:
          print hex_dec(text_input)
  </code></pre>
  
  <p>I think I would need one textinput and one label which would be the result of that textinput.
  But this is very messy and I don't know and to use all of that into kivy class! </p>