-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathWidIntroDados.kv
315 lines (279 loc) · 8.33 KB
/
WidIntroDados.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
#:kivy 1.11.0
# O Widget vai ser usado para introduzir dados quando:
# - Salvar
# - Alterar
# ----- Wid Principal Introdução de Dados ----- #
<WidIntroDados>:
id: box_introdados
pos_hint: {'x': .53, 'top': .85}
size_hint: (.38, .70)
# ----- Fundo Escuro do Formulário ----- #
BoxLayout:
canvas:
Color:
rgba: (0, 0, .3, .4)
Rectangle:
pos: self.pos
size: self.size
pos_hint: {'x': 0, 'top': 1}
size_hint: (1, .62)
# ----- Titulo Wid ----- #
Label:
id: titulo_widintrodados
pos_hint: {'right': .90, 'top': .97}
size_hint: (.35, .05)
padding: (1, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
font_size: '20sp'
halign: 'right'
valign: 'top'
# ----- Botão de Sair ----- #
Button:
pos_hint: {'x': .92, 'top': .965}
size_hint: (.045, .045)
background_normal: 'Images/Close.png'
background_down: 'Images/Close.png'
border: (0, 0, 0, 0)
on_release: app.root.close_wid()
# ----- Dados ----- #
# ----- Nome do Aluno ----- #
Label:
id: lbl_01
pos_hint: {'x': .03, 'top': .90}
size_hint: (.30, .03)
padding: (1, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'left'
text: 'Nome do aluno(a)'
TextInput:
id: txt_input01
background_color: (0.96, 0.93, 0.73, 1) if self.focus else (0.83, 0.94, 1, 1)
pos_hint: {'x': .03, 'top': .86}
size_hint: (.87, .06)
cursor_blink: True
hint_text: 'Nome do Aluno(a)'
multiline: False
write_tab: False
# ----- CPF ----- #
Label:
id: lbl_02
pos_hint: {'x': .03, 'top': .77}
size_hint: (.30, .03)
padding: (1, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'left'
text: 'CPF'
TextInput:
id: txt_input02
background_color: (0.96, 0.93, 0.73, 1) if self.focus else (0.83, 0.94, 1, 1)
pos_hint: {'x': .03, 'top': .73}
size_hint: (.27, .06)
hint_text: 'CPF'
multiline: False
write_tab: False
# ----- RG ----- #
Label:
id: lbl_03
pos_hint: {'x': .33, 'top': .77}
size_hint: (.30, .03)
padding: (1, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'left'
text: 'RG'
TextInput:
id: txt_input03
background_color: (0.96, 0.93, 0.73, 1) if self.focus else (0.83, 0.94, 1, 1)
pos_hint: {'x': .33, 'top': .73}
size_hint: (.27, .06)
hint_text: 'RG'
multiline: False
write_tab: False
# ----- Data Nascimento ----- #
Label:
id: lbl_04
pos_hint: {'x': .63, 'top': .77}
size_hint: (.30, .03)
padding: (1, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'left'
text: 'Data de Nascimento'
TextInput:
id: txt_input04
background_color: (0.96, 0.93, 0.73, 1) if self.focus else (0.83, 0.94, 1, 1)
pos_hint: {'x': .63, 'top': .73}
size_hint: (.27, .06)
hint_text: 'dd/mm/aaaa'
multiline: False
write_tab: False
# ----- Historico ----- #
Label:
id: lbl_05
pos_hint: {'x': .11, 'top': .62}
size_hint: (.30, .03)
padding: (2, 0)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'left'
# ----- Certidão de Nascimento ----- #
Label:
id: lbl_06
pos_hint: {'right': .90, 'top': .62}
size_hint: (.40, .03)
text_size: self.size
color: (0.831, 0.941, 1, 1)
halign: 'right'
# ----- Check Boxes Historico ----- #
BoxLayout:
orientation: 'vertical'
pos_hint: {'x': .03, 'top': .58}
size_hint: (.30, .10)
BoxLayout:
Label:
id: lbl_07
color: (0.831, 0.941, 1, 1)
text: 'Sim'
Label:
id: lbl_08
color: (0.831, 0.941, 1, 1)
BoxLayout:
CheckBox:
id: check01
group: 'sn1'
background_radio_normal: 'Images/Checkbox1.png'
background_radio_down: 'Images/Checkbox2.png'
#on_active: root.check_checkbox(self, self.active)
CheckBox:
id: check02
group: 'sn1'
background_radio_normal: 'Images/Checkbox1.png'
background_radio_down: 'Images/Checkbox3.png'
#on_active: root.check_checkbox(self, self.active)
# ----- Check Boxes Certidão de Nascimento ----- #
BoxLayout:
orientation: 'vertical'
pos_hint: {'x': .60, 'top': .58}
size_hint: (.30, .10)
BoxLayout:
Label:
id: lbl_09
color: (0.831, 0.941, 1, 1)
text: 'Sim'
Label:
id: lbl_10
color: (0.831, 0.941, 1, 1)
BoxLayout:
CheckBox:
id: check03
group: 'sn2'
background_radio_normal: 'Images/Checkbox1.png'
background_radio_down: 'Images/Checkbox2.png'
#on_active: root.check_checkbox(self, self.active)
CheckBox:
id: check04
group: 'sn2'
background_radio_normal: 'Images/Checkbox1.png'
background_radio_down: 'Images/Checkbox3.png'
#on_active: root.check_checkbox(self, self.active)
# ----- Botões ----- #
Button: # ----- Botão Limpar Widgets ----- #
id: btn_limpar
pos_hint: {'right': .79, 'top': .35}
size_hint: (.20, .08)
background_normal: 'Images/btn_azul.png'
background_down: 'Images/btn_azul2.png'
border: (0, 0, 0, 0)
text_size: self.size
halign: 'left'
valign: 'center'
line_height: 1.8
color: (0.831, 0.941, 1, 1)
text: ' Limpar'
on_release: root.limpa_widintrodados()
Button: # ----- Botão Salvar ----- #
id: btn_salvar
pos_hint: {'right': 1, 'top': .35}
size_hint: (.20, .08)
background_normal: 'Images/btn_azul.png'
background_down: 'Images/btn_azul2.png'
border: (0, 0, 0, 0)
text_size: self.size
halign: 'left'
valign: 'center'
line_height: 1.8
color: (0.831, 0.941, 1, 1)
text: ' Salvar'
on_release: root.acao_btn_salvar()
# ----- Classe resultados local arquivo ----- #
<WidResultado1>:
canvas:
Color:
rgba: (0, 0, .3, .4)
Rectangle:
pos: self.pos
size: self.size
orientation: 'vertical'
pos_hint: {'x': 0, 'top': .345}
size_hint: (.45, .25)
Label:
id: lbl_titulo
size_hint_y: (.30)
text_size: self.size
color: (0.83, 0.94, 1, 1)
halign: 'center'
valign: 'bottom'
color: (0, 1, 0, 1)
text: 'Cadastrado com sucesso'
GridLayout:
rows: 3
cols: 2
padding: (20, 10, 0, 10)
# ----- Pasta ----- #
Label:
size_hint_x: .80
text_size: self.size
color: (0.83, 0.94, 1, 1)
halign: 'left'
valign: 'top'
text: 'Pasta:'
Label:
id: lbl_pasta
text_size: self.size
color: (0.83, 0.94, 1, 1)
padding: (20, 0)
halign: 'left'
valign: 'top'
# ----- Posição ----- #
Label:
size_hint_x: .80
text_size: self.size
color: (0.83, 0.94, 1, 1)
halign: 'left'
valign: 'top'
text: root.posicao
Label:
id: lbl_posicao
text_size: self.size
color: (0.83, 0.94, 1, 1)
padding: (20, 0)
halign: 'left'
valign: 'top'
# ----- Protocolo ----- #
Label:
size_hint_x: .80
text_size: self.size
color: (0.83, 0.94, 1, 1)
halign: 'left'
valign: 'center'
text: 'Protocolo:'
Label:
id: lbl_protocolo
text_size: self.size
color: (0.83, 0.94, 1, 1)
padding: (20, 0)
halign: 'left'
valign: 'center'