-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.kv
46 lines (37 loc) · 1.02 KB
/
login.kv
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#:include connected.kv
<Login>:
BoxLayout
id: login_layout
orientation: 'vertical'
padding: [10,50,10,50]
spacing: 50
Label:
text: 'Welcome'
font_size: 32
BoxLayout:
orientation: 'vertical'
Label:
text: 'Login'
font_size: 18
halign: 'left'
text_size: root.width-20, 20
TextInput:
id: login
multiline:False
font_size: 28
BoxLayout:
orientation: 'vertical'
Label:
text: 'Password'
halign: 'left'
font_size: 18
text_size: root.width-20, 20
TextInput:
id: password
multiline:False
password:True
font_size: 28
Button:
text: 'Connexion'
font_size: 24
on_press: root.do_login(login.text, password.text)