Advertisement
Guest User

Pyano.py

a guest
Apr 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. import kivy
  2.  
  3. from kivy.uix.textinput import TextInput
  4. from kivy.uix.gridlayout import GridLayout
  5. from kivy.app import App
  6. from kivy.uix.label import Label
  7.  
  8.    
  9. class LoginScreen(Gridlayout):
  10.     def __init__(self, **kwargs):                       super(LoginScreen, self).__init__(**kwargs)
  11.     self.cols = 2
  12.     self.add_widget(Label(text='UserName'))
  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.         #return Label(text = 'hello world')
  25.  
  26. if __name__ == '__main__':     
  27.     MyApp().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement