Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from kivy.app import App
- from kivy.uix.widget import Widget
- class Access(Widget):
- pass
- class LoginApp(App):
- def build(self):
- return Access()
- LoginApp().run()
- #:kivy 1.0.9
- <Access>:
- f_username: username
- f_password: password
- GridLayout:
- pos: root.center_x-self.width, root.center_y-self.height/2
- col_default_width: 100
- rows: 2
- cols: 2
- Label:
- text: 'User Name:'
- TextInput:
- id: username
- multiline: False
- Label:
- text: 'Password:'
- TextInput:
- id: password
- password: True
Add Comment
Please, Sign In to add comment