Guest User

Untitled

a guest
Dec 11th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. from kivy.app import App
  2. from kivy.uix.widget import Widget
  3.  
  4. class Access(Widget):
  5. pass
  6.  
  7. class LoginApp(App):
  8.  
  9. def build(self):
  10. return Access()
  11.  
  12. LoginApp().run()
  13.  
  14. #:kivy 1.0.9
  15.  
  16. <Access>:
  17. f_username: username
  18. f_password: password
  19. GridLayout:
  20. pos: root.center_x-self.width, root.center_y-self.height/2
  21. col_default_width: 100
  22. rows: 2
  23. cols: 2
  24. Label:
  25. text: 'User Name:'
  26. TextInput:
  27. id: username
  28. multiline: False
  29. Label:
  30. text: 'Password:'
  31. TextInput:
  32. id: password
  33. password: True
Add Comment
Please, Sign In to add comment