-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestegui.py
More file actions
28 lines (20 loc) · 725 Bytes
/
testegui.py
File metadata and controls
28 lines (20 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput
from kivy.uix.label import Label
class loginscreen(GridLayout):
def __init__(self, **kwargs):
super(loginscreen, self).__init__(**kwargs)
self.cols = 2
self.add_widget(Label(text='User'))
self.username = TextInput(multiline=False)
self.add_widget(self.username)
self.add_widget(Label(text='Password'))
self.password = TextInput(multiline=False, password=True)
self.add_widget(self.password)
class SimpleKivy(App):
def build(self):
return loginscreen()
SimpleKivy().run()