-
Notifications
You must be signed in to change notification settings - Fork 0
/
Design.kv
2946 lines (2383 loc) · 60.5 KB
/
Design.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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
WindowManager:
Login:
Rectoria:
SIASE:
Add:
Mod:
Delete:
<Login>:
id: login
name: "login"
Image:
id: wallpaper
name: "wallpaper"
source: "images/wallpaper.png"
Image:
id: img_text
name: "img_text"
pos_hint: {"center_x": .59, "center_y": .9}
color: 200/255, 200/255, 200/255, 1
source: "images/text2.png"
Label:
text: "[b][i]¡ Ingresa con una sola cuenta![/i][/b]"
markup: True
font_size: 25
center_x: self.parent.center_x - 120
center_y: self.parent.center_y
color: 220/255, 140/255, 0, 1
Image:
id: img_correo
name: "img_correo"
pos_hint: {"center_x": .14, "center_y": .7}
source: "images/correo.png"
Image:
id: img_siase
name: "img_siase"
pos_hint: {"center_x": .37, "center_y": .695}
source: "images/siase.png"
Image:
id: img_codice
name: "img_codice"
pos_hint: {"center_x": .6, "center_y": .695}
source: "images/codice.png"
Image:
id: img_nexus
name: "img_nexus"
pos_hint: {"center_x": .839, "center_y": .7}
source: "images/nexus.png"
MDIconButton:
id: calendar
name: "calendar"
icon: "calendar-month"
pos_hint: {"center_x": .3, "center_y": .55}
theme_text_color: 'Custom'
text_color: 1, 1, 1, 1
Label:
id: calendar_text
name: "calendar_text"
text: ""
pos_hint: {"center_x": .38, "center_y": .55}
MDIconButton:
id: clock
name: "clock"
icon: "clock-outline"
pos_hint: {"center_x": .5, "center_y": .55}
theme_text_color: 'Custom'
text_color: 1, 1, 1, 1
Label:
id: clock_text
name: "clock_text"
text: ""
pos_hint: {"center_x": .55, "center_y": .55}
Label:
text: "Tipo:"
pos_hint: {"center_x": .095, "center_y": .43}
MDRaisedButton:
id: type_
name: "type_"
text: "Alumno "
theme_text_color: "Custom"
text_color: .1, .1, .1, 1
size_hint: .19, .076
pos_hint: {"center_x": .25, "center_y": .43}
md_bg_color: .95, .95, .95, 1
on_press:
account.text = ""
password.text = ""
account.focus = True
root.onPressType_()
MDIconButton:
pos_hint: {"center_x": .32, "center_y": .43}
icon:"arrow-down-drop-circle-outline"
Label:
id: account_text
name: "account_text"
text: "Estudiante:"
pos_hint: {"center_x": .095, "center_y": .33}
TextInput:
id: account
name: "account"
text: ""
focus: True
on_text: root.onTextAccount()
on_focus: root.onTextAccount()
on_text_validate:
if password.disabled == False and login.disabled == True:\
password.focus = True
elif password.disabled == False and login.disabled == False:\
root.signIn()
input_filter: "int"
multiline: False
size_hint: .19, .076
pos_hint: {"center_x": .25, "center_y": .33}
Label:
text: "Contraseña:"
pos_hint: {"center_x": .09, "center_y": .225}
TextInput:
id: password
name: "password"
text: ""
password: True
on_text: root.onTextPassword()
on_text_validate:
if root.onTextPassword() == False:\
root.signIn()
disabled: True
multiline: False
size_hint: .19, .076
pos_hint: {"center_x": .25, "center_y": .22}
MDIconButton:
id: hidden_eye
name: 'hidden_eye'
icon: 'eye-off'
pos_hint: {'center_x': .37, 'center_y': .22}
on_press: root.onPressHiddenEye()
Button:
id: login
name: "login"
text: "[b]Entrar[/b]"
markup: True
background_color: 600/255, 435/255, 0/255, 1
color: 25/255, 70/255, 100/255, 1
size_hint: .19, .076
pos_hint: {"center_x": .25, "center_y": .12}
disabled: True
on_press: root.signIn()
Label:
text: "Consulta de matricula para"
color: 249/255, 179/255, 0/255, 1
pos_hint: {"center_x": .45, "center_y": .14}
font_size: 10
Label:
text: "alumnos de primer ingreso"
color: 249/255, 179/255, 0/255, 1
pos_hint: {"center_x": .452, "center_y": .11}
font_size: 10
Label:
text: "Sección de preguntas"
pos_hint: {"center_x": .435, "center_y": .08}
font_size: 10
Label:
text: "frecuentes"
pos_hint: {"center_x": .402, "center_y": .05}
font_size: 10
<SIASE>:
id: siase
name: 'siase'
Image:
source: 'images/siase2.png'
pos_hint: {'center_x': .1, 'center_y': .9}
TextInput:
id: input_
on_focus: input_.focus = False
size_hint: .1, .2
pos_hint: {'center_x': .25, 'center_y': .89}
Label:
text: '[b] FOTO\n NO\n DISPONIBLE[/b]'
markup: True
color: 120/255, 120/255, 120/255, 1
size_hint: .1, .2
pos_hint: {'center_x': .25, 'center_y': .89}
GridLayout:
cols: 1
spacing: -50
pos_hint: {'center_x': .325, 'center_y': .92}
size_hint_x: .1
size_hint_y: .22
Label:
text: '[b]Matricula:[/b]'
markup: True
font_size: 11
color: 0, 0, 0, 1
Label:
text: '[b]Nombre: [/b]'
markup: True
font_size: 11
color: 0, 0, 0, 1
Label:
text: '[b]Carrera: [/b]'
markup: True
font_size: 11
color: 0, 0, 0, 1
TextInput:
id: enrollment
name: 'enrollment'
disabled: True
font_size: 9
pos_hint: {'center_x': .42, 'center_y': .967}
size_hint_x: .14
size_hint_y: .035
background_color: 0, 0, 0, 0
TextInput:
id: name
name: 'name'
disabled: True
font_size: 9
background_color: 0, 0, 0, 0
pos_hint: {'center_x': .42, 'center_y': .911}
size_hint_x: .14
size_hint_y: .053
TextInput:
id: career
name: 'career'
disabled: True
font_size: 9
pos_hint: {'center_x': .42, 'center_y': .865}
size_hint_x: .14
size_hint_y: .053
background_color: 0, 0, 0, 0
Image:
source: 'images/vertical_line.png'
pos_hint: {'center_x': .5, 'center_y': .9}
Image:
source: 'images/uanl.png'
pos_hint: {'center_x': .55, 'center_y': .9}
Label:
text: 'UNIVERSIDAD AUTÓNOMA\nDE NUEVO LEÓN'
font_size: 30
color: 0, 0, 0, 1
pos_hint: {'center_x': .78, 'center_y': .9}
Image:
source: 'images/line.png'
pos_hint: {'center_x': .25, 'center_y': .80}
color: 0, 0, 0, 1
Image:
source: 'images/line.png'
pos_hint: {'center_x': .7634, 'center_y': .80}
color: 0, 0, 0, 1
BoxLayout:
orientation: 'horizontal'
padding: 2
pos_hint: {'center_x': .65, 'center_y': .7949}
size_hint_x: .7
size_hint_y: .02
canvas.before:
Color:
rgb: .1, .29, .54
Rectangle:
size: self.size
pos: self.pos
Button:
text: 'Escolar'
size_hint_x: .7
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'Tesoreria'
size_hint_x: .63
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'DGPPE'
size_hint_x: .7
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'AFI'
font_size: 11
size_hint_x: .4
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'EXCI'
size_hint_x: .4
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'Contraseña'
size_hint_x: .8
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'Clave de Seguridad'
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'Aviso de Privacidad'
font_size: 11
background_color: 0, 0, 0, 0
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
Button:
text: 'Salir'
size_hint_x: .4
font_size: 11
background_color: 0, 0, 0, 0
on_press:
app.root.current = 'login'
login = app.root.get_screen('login')
login.ids.account.text = ''
login.ids.password.text = ''
root.resizeWindow()
Label:
text: ''
BoxLayout:# COLOR 'BUTTON'
size_hint_x: .012
size_hint_y: .018
pos_hint: {'center_x': .91, 'center_y': .796}
canvas.before:
Color:
rgb: 255/255, 204/255, 20/255
Rectangle:
size: self.size
pos: self.pos
BoxLayout: # COLOR LETTER 'F' of facebook
size_hint_x: .004
size_hint_y: .014
pos_hint: {'center_x': .91, 'center_y': .7955}
canvas.before:
Color:
rgb: .1, .29, .54, 1
Rectangle:
size: self.size
pos: self.pos
MDIconButton:
icon: 'facebook'
user_font_size: '12sp'
pos_hint: {'center_x': .91, 'center_y': .797}
theme_text_color: 'Custom'
text_color: 255/255, 204/255, 20/255, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
BoxLayout:# COLOR 'BUTTON'
size_hint_x: .012
size_hint_y: .018
pos_hint: {'center_x': .94, 'center_y': .796}
canvas.before:
Color:
rgb: 255/255, 204/255, 20/255
Rectangle:
size: self.size
pos: self.pos
MDIconButton:
icon: 'twitter'
user_font_size: '12sp'
pos_hint: {'center_x': .94, 'center_y': .796}
theme_text_color: 'Custom'
text_color: .1, .29, .54, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
BoxLayout:
orientation: 'vertical'
size_hint_x: .2
size_hint_y: .778
canvas.before:
Color:
rgb: .1, .29, .54
Rectangle:
size: self.size
pos: self.pos
ScrollView:
do_scroll_y: True
GridLayout:
cols: 1
size_hint_y: None
height: self.minimum_height
MDRaisedButton:
text: 'subir foto del alumno'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'carga documentos pendientes'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Situacion estudiante UANL'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Inscripción'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.onPressInscription()
MDRaisedButton:
text: 'Becas'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Kardex'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.onPressKardex()
MDRaisedButton:
text: 'Horario'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press: root.onPressSchedule()
MDRaisedButton:
text: 'Calificaciones'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'datos personales'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Aviso de Pago'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'subir foto del alumno'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Consulta Fecha Inscripción'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Consulta de Evaluación'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Cuotas escolares rectoria'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'aviso de inscripcion'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Otros adeudos'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Encuestas'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Encuestas tutoria'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Registro servicio social'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'formato inscripcion rectoria'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Trámites DEyA'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'boleta pago '.title() + 'EXENS'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Inscripción PROVERICYT'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Programa Futbol Americano'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Cuestionario Huella CO2'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Registro IMSS'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Encuestas - CEV'
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'Prácticas Profesionales'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
MDRaisedButton:
text: 'voluntariado'.title()
size_hint_x: 2
md_bg_color: .1, .29, .54, 1
line_color: 1, 1, 1, 1
on_press:
layout.clear_widgets()
root.Dialog('Error', 'Servicio no Disponible')
GridLayout:
id: background
name: 'background'
cols: 1
size_hint_x: .8
size_hint_y: .778
pos_hint: {'center_x': .6, 'center_y': .389}
canvas.before:
Color:
rgb: 1, 1, 1, 1
Rectangle:
size: self.size
pos: self.pos
ScrollView:
id: scroll
name: 'scroll'
do_scroll_y: True
GridLayout:
id: layout
name: 'layout'
size_hint_y: None
#row_default_height: 50
height: self.minimum_height
canvas.before:
Color:
rgb: 1, 1, 1
Rectangle:
size: self.size
pos: self.pos
<Rectoria>:
id: rectoria
name: "rectoria"
Image:
source: 'images/wallpaper2.png'
BoxLayout:
orientation: 'vertical'
MDRaisedButton:
text: 'Agregar'
size_hint_x: 1
size_hint_y: 1
md_bg_color: .5, .5, .5, .5
opacity: .8
on_press: app.root.current = 'add'
MDRaisedButton:
text: 'Modificar'
size_hint_x: 1
size_hint_y: 1
md_bg_color: .5, .5, .5, .5
opacity: .8
on_press: app.root.current = 'mod'
MDRaisedButton:
text: 'Eliminar'
size_hint_x: 1
size_hint_y: 1
md_bg_color: .5, .5, .5, .5
opacity: .8
on_press: app.root.current = 'del'
<Add>:
id: add
name: 'add'
MDBottomNavigation:
panel_color: .9, .5, 0, 1
size_hint_x: 1
size_hint_y: 1
MDBottomNavigationItem:
id: student
name: 'student'
icon: 'school'
text: 'Estudiante'
on_tab_press: root.resizeWindowStudent()
Image:
source: 'images/wallpaper3.png'
BoxLayout:
orientation: 'horizontal'
size_hint_x: .99
size_hint_y: .95
pos_hint: {'center_y': .5}
GridLayout:
id: student_fields
name: 'student_fields'
padding: 10
spacing: 15
#size_hint_y: None
cols: 1
#rows: 8
MDTextField
id: middle_name
name: 'middle_name'
text: ''
hint_text: 'Apellido Paterno del Estudiante'
on_text: root.onTextMiddleName()
on_focus: root.onTextMiddleName()
color_mode: 'custom'
line_color_focus: .9, .5, 0, 1
multiline: False
mode: 'fill'
fill_color: .9, .5, 0, .1
size_hint_x: .9
MDTextField
id: last_name
name: 'last_name'
text: ''
hint_text: 'Apellido Materno del Estudiante'
on_text: root.onTextLastName()
on_focus: root.onTextLastName()
color_mode: 'custom'
line_color_focus: .9, .5, 0, 1
multiline: False
mode: 'fill'
fill_color: .9, .5, 0, .1
size_hint_x: .9
MDTextField
id: name
name: 'name'
text: ''
hint_text: 'Nombre del Estudiante'
on_text: root.onTextName()
on_focus: root.onTextName()
color_mode: 'custom'
line_color_focus: .9, .5, 0, 1
multiline: False
mode: 'fill'
fill_color: .9, .5, 0, .1
size_hint_x: .9
MDTextField
id: email
name: 'email'
hint_text: 'Correo Universitario'
on_text: root.onTextEmail()
on_focus: root.onTextEmail()
color_mode: 'custom'
line_color_focus: .9, .5, 0, 1
multiline: False
mode: 'fill'
fill_color: .9, .5, 0, .1
size_hint_x: .9
MDTextField
id: date_birth
name: 'date_birth'
text: ''
hint_text: 'Fecha de Nacimiento (YYYY/MM/DD)'
on_text: root.onTextDateBirth()
on_focus: root.onTextDateBirth()
on_text_validate:
if date_birth.focus == False:\
date_birth.text = '2005/01/01'
max_text_length: 10
color_mode: 'custom'
line_color_focus: .9, .5, 0, 1
multiline: False
mode: 'fill'
fill_color: .9, .5, 0, .1
size_hint_x: .9
MDRaisedButton:
id: student_faculty
name: 'student_faculty'
text: 'Seleccionar Facultad'
disabled: True
size_hint_x: .9
md_bg_color: 0, .2, .9, 1
line_color: 1, 1, 1, 1
on_press: root.onPressStudentFaculty()
MDRaisedButton:
id: student_career
name: 'student_career'
text: 'Seleccionar Carrera'
disabled: True
size_hint_x: .9
md_bg_color: 0, .2, .9, 1
line_color: 1, 1, 1, 1
on_press: root.onPressStudentCareer()
MDRaisedButton:
id: kardex#revalidate
name: 'kardex'#'revalidate'
text: 'Kardex'
disabled: True
md_bg_color: 0, .2, .9, 1
line_color: 1, 1, 1, 1
size_hint_x: .9
on_press: root.onPressKardex()
MDRaisedButton:
id: save_student
name: 'save_student'
text: 'Guardar'
disabled: True
pos_hint: {'center_x': .5}
md_bg_color: 0, .2, .9, 1
line_color: 1, 1, 1, 1
size_hint_x: .9
on_press: root.onPressSaveStudent()
BoxLayout:
id: student_show
name: 'student_show'
orientation: 'vertical'
padding: 5
canvas.before:
Color:
rgb: .9, .5, 0, 1
Rectangle:
size: self.size
pos: self.pos
ScrollView:
id: student_scroll
name: 'student_scroll'
do_scroll_y: True
GridLayout:
id: student_button