Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
- from TouchInterface import MyApp
- if __name__ == '__main__':
- # Point where I start up other Modules in future ...
- MyApp().run()
- [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_16-07-04_36.txt
- [INFO ] [Kivy ] v1.9.2-dev0
- [INFO ] [Python ] v2.7.9 (default, Mar 8 2015, 00:52:26)
- [GCC 4.9.2]
- [INFO ] [Factory ] 193 symbols loaded
- [INFO ] [Image ] Providers: (img_tex, img_dds, img_gif, img_sdl2, img_pil, img_ffpyplayer ignored)
- [CRITICAL] [App ] Unable to get any Image provider, abort.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement