-
Notifications
You must be signed in to change notification settings - Fork 0
/
styler.kv
186 lines (148 loc) · 3.51 KB
/
styler.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
#:import FadeTransition kivy.uix.screenmanager.FadeTransition
#:import SlideTransition kivy.uix.screenmanager.SlideTransition
<LoginScreen>
FloatLayout:
size: root.width,root.height
Image:
source: "./back.jpg"
keep_ratio: True
Label:
id: lbl1
text: "Username"
pos_hint: {"x": 0.1,"y":0.7}
size_hint: (0.3,0.1)
TextInput:
id: txt1
multiline: False
pos_hint: {"x": 0.5,"y":0.7}
size_hint: (0.4,0.08)
Label:
id: lbl2
text: "Password"
pos_hint: {"x": 0.1,"y":0.55}
size_hint: (0.3,0.1)
TextInput:
id: txt2
multiline: False
pos_hint: {"x": 0.5,"y":0.55}
size_hint: (0.4,0.08)
Button:
text : "Sign in"
size_hint: (0.6,0.08)
pos_hint: {"x": 0.2,"y":0.20}
on_press: root.SignIn()
Button:
pos_hint: {"x": 0.2,"y":0.08}
size_hint: (0.6,0.08)
text : "Do not have an account? SIGN UP now!!!"
on_press:
app.root.transition = SlideTransition(direction='right')
app.root.current = "screen3"
<SignUpScreen>
FloatLayout:
size: root.width,root.height
Image:
source: "./back.jpg"
keep_ratio: True
Label:
id: lbl1
text: "Name"
pos_hint: {"x": 0.1,"y":0.85}
size_hint: (0.3,0.08)
TextInput:
id: txt1
multiline: False
pos_hint: {"x": 0.5,"y":0.85}
size_hint: (0.4,0.07)
Label:
id: lbl2
text: "Email id"
pos_hint: {"x": 0.1,"y":0.75}
size_hint: (0.3,0.08)
TextInput:
id: txt2
multiline: False
pos_hint: {"x": 0.5,"y":0.75}
size_hint: (0.4,0.07)
Label:
id: lbl3
text: "Username"
pos_hint: {"x": 0.1,"y":0.65}
size_hint: (0.3,0.08)
TextInput:
id: txt3
multiline: False
pos_hint: {"x": 0.5,"y":0.65}
size_hint: (0.4,0.07)
Label:
id: lbl4
text: "Password"
pos_hint: {"x": 0.1,"y":0.55}
size_hint: (0.3,0.08)
TextInput:
id: txt4
multiline: False
pos_hint: {"x": 0.5,"y":0.55}
size_hint: (0.4,0.07)
Label:
id: lbl5
text: "Confirm Password"
pos_hint: {"x": 0.1,"y":0.45}
size_hint: (0.3,0.08)
TextInput:
id: txt5
multiline: False
pos_hint: {"x": 0.5,"y":0.45}
size_hint: (0.4,0.07)
Label:
id: lbl6
text: "IITK Roll no"
pos_hint: {"x": 0.1,"y":0.35}
size_hint: (0.3,0.08)
TextInput:
id: txt6
multiline: False
pos_hint: {"x": 0.5,"y":0.35}
size_hint: (0.4,0.07)
Button:
text : "Sign UP"
on_press: root.SignUp()
size_hint: (0.6,0.08)
pos_hint: {"x": 0.2,"y":0.20}
Button:
pos_hint: {"x": 0.2,"y":0.08}
size_hint: (0.6,0.08)
text: " Back to Sign In page"
on_press:
app.root.transition = FadeTransition(direction='left')
app.root.current = "screen1"
<OtherScreen>
FloatLayout:
size: root.width,root.height
Label:
text: "Padhaaro !!!!"
font_size: "100sp"
Button:
pos_hint: {"x": 0.2,"y":0.08}
size_hint: (0.6,0.08)
text : "Logout"
on_press:
app.root.transition = SlideTransition(direction='right')
app.root.current = "screen1"
<Manager>:
id: screen_manager
screen_one: screen_one
screen_two: screen_two
screen_three: screen_three
LoginScreen:
id: screen_one
name: "screen1"
manager: screen_manager
OtherScreen:
id: screen_two
name: "screen2"
manager: screen_manager
SignUpScreen:
id: screen_three
name: "screen3"
manager: screen_manager