-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmyotp.kv
104 lines (49 loc) · 1.41 KB
/
myotp.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<Button>:
background_color : 0.698, 0.133, 0.133,0.6
<Label>:
color : 1,1,0.5,1
<MyGridLayout>:
objname : name
objemail : email
objphone : phone
objotp : otp
GridLayout:
cols:1
size : root.width , root.height
GridLayout:
cols:2
Label:
text : "Name: "
TextInput:
id : name
multiline : False
Label:
text: " Email : "
TextInput:
id: email
multiline : False
Label:
text: " Phone Number :"
TextInput:
id: phone
multiline : False
Button:
id : sendbtn
size_hint : .1 , 0.3
text: "Generate OTP" if sendbtn.state == "normal" else "Generating OTP"
on_press : root.sendbtn()
GridLayout:
cols : 2
Label:
size_hint_y: 0.1
text: " Enter OTP :"
TextInput:
height : 40
pos_hint: {"y" : 1 , "top" : 1}
id: otp
multiline : False
Button:
id : authbtn
size_hint : 0.1,1
text: "Authenticate" if authbtn.state == "normal" else "Authenticating"
on_press : root.authbtn()