Advertisement
Guest User

Untitled

a guest
Jul 4th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. from kivy.app import App
  2. from kivy.uix.gridlayout import GridLayout
  3. from kivy.uix.label import Label
  4. from kivy.uix.textinput import TextInput
  5.  
  6.  
  7. class LoginScreen(GridLayout):
  8.  
  9. def __init__(self, **kwargs):
  10. super(LoginScreen, self).__init__(**kwargs)
  11. self.cols = 2
  12. self.add_widget(Label(text='User Name'))
  13. self.username = TextInput(multiline=False)
  14. self.add_widget(self.username)
  15. self.add_widget(Label(text='password'))
  16. self.password = TextInput(password=True, multiline=False)
  17. self.add_widget(self.password)
  18.  
  19.  
  20. class MyApp(App):
  21.  
  22. def build(self):
  23. return LoginScreen()
  24.  
  25. if __name__ = '__main__:
  26. MyApp().run()
  27.  
  28. from TouchInterface import MyApp
  29.  
  30.  
  31. if __name__ == '__main__':
  32. # Point where I start up other Modules in future ...
  33. MyApp().run()
  34.  
  35. [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_16-07-04_36.txt
  36. [INFO ] [Kivy ] v1.9.2-dev0
  37. [INFO ] [Python ] v2.7.9 (default, Mar 8 2015, 00:52:26)
  38. [GCC 4.9.2]
  39. [INFO ] [Factory ] 193 symbols loaded
  40. [INFO ] [Image ] Providers: (img_tex, img_dds, img_gif, img_sdl2, img_pil, img_ffpyplayer ignored)
  41. [CRITICAL] [App ] Unable to get any Image provider, abort.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement