-
Notifications
You must be signed in to change notification settings - Fork 0
/
layouts.kv
703 lines (669 loc) · 23.5 KB
/
layouts.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
#:kivy 1.9
# File name: layouts.kv
# -*- coding: utf-8 -*-
#########################################################
<BtnHoras>
text: '1.5 h'
font_size: 26
on_press: app.Cambiar_Horas(root.NombreAlumno)
<SelectHoras>
loop:True
Label:
text: root.Hora_Inical
Label:
text: '1.5h'
Label:
text: '2h'
Label:
text: '2.5h'
Label:
text: '3h'
Label:
text: '1h'
<Desplegable>
size_hint: (None, None)
size: (500, 250)
#for Android
# size: (500,250)
#######
pos_hint: {'center_x': root.Posi[0], 'y': root.Posi[1]}
BoxLayout:
orientation: 'vertical'
Label:
text: root.Nombre_pupil
BoxLayout:
orientation:'horizontal'
BubbleButton:
text: 'Editar'
# font_size: 50
on_press:app.PopUp_Editar_Alumno(root.Posi[2])
BubbleButton:
text: 'Ficha'
# font_size: 50
on_press:app.Switch_to_Ficha_Alumno(root.Nombre_pupil)
<Calendario>
week:_week
days:_days
editar:_editar
crear:_crear
GridLayout:
cols:1
orientation: 'vertical'
GridLayout:
rows:2
orientation: 'vertical'
size_hint_y:0.2
# spacing:100
Label:
text: "[color=FF9900][i][b]"+root.mesName+"[color=FF9900][/i][/b]"+10*' '+ "[color=#3333ff]"+root.Nm_Asignatura+"[color=#3333ff]"
# font_size:100
markup:True
BoxLayout:
orientation:'horizontal'
Button:
# image: 'prev.png'
text: '<'
font_size:80
size_hint_x: None
width: self.height
on_release: app.Switch_to_Main_screen()
ToggleButton:
id:_editar
text:'Editar\nAsistencia'
font_size: 40
size_hint_x: 0.25
width: self.height
on_release: app.Editar_Asistencia()
ToggleButton:
id:_crear
text:'Crear\nAsistencia'
font_size: 40
size_hint_x: 0.25
width: self.height
on_release: app.Asistencia_puntual()
####
#### Poner aqui los botones exta
####
Label:
text: "[i][b][sup]Alumno:[/sup][/i][/b]"+" "*5+"[color=ff3333][i][b]"+root.Nm_alumno+"[/i][/b][/color]"
# font_size: 50
markup:True
BoxLayout:
id:_week
size_hint_y:0.1
orientation:'horizontal'
GridLayout:
orientation:'horizontal'
id:_days
cols:7
<Horarios>
rango:_rango
diasSemana:_diasSemana
asignatura:_asignatura
mananas:_mananas
tardes:_tardes
box_mananas:_box_mananas
box_tardes:_box_tardes
#
mananaInicioHora:_mananaInicioHora
mananaInicioMinuto:_mananaInicioMinuto
mananaFinHora:_mananaFinHora
mananaFinMinuto:_mananaFinMinuto
#
tardeInicioHora:_tardeInicioHora
tardeInicioMinuto:_tardeInicioMinuto
tardeFinHora:_tardeFinHora
tardeFinMinuto:_tardeFinMinuto
# switch:_switch
BoxLayout:
orientation:'vertical'
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.3
Label:
text: '[b][i]HORARIO[/b][/i]'
markup: True
Button:
size_hint: None,None
text: 'Main\nScreen'
on_press: app.Switch_to_Main_screen()
# Switch:
# id: _switch
# active: False
# on_active:app.Activar_Horario_HORARIOS(*args)
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.2
Label:
text: 'Asignatura:'
Spinner:
id:_asignatura
# size_hint: None, 1
text: '-----'
background_normal: 'atlas://data/images/defaulttheme/action_group'
values:tuple(root.Lista_Asignaturas)
GridLayout:
id:_diasSemana
size_hint_y: 0.3
rows:2
cols:7
Label:
text: 'Lunes'
Label:
text: 'Martes'
Label:
text: 'Miercoles'
Label:
text: 'Jueves'
Label:
text: 'Viernes'
Label:
text: 'Sabado'
Label:
text: 'Domingo'
CheckBox:
text:'Lunes'
CheckBox:
text:'Martes'
CheckBox:
text:'Miercoles'
CheckBox:
text:'Jueves'
CheckBox:
text:'Viernes'
CheckBox:
text:'Sabado'
CheckBox:
text:'Domingo'
BoxLayout:
id:_rango
orientation:'horizontal'
size_hint_y: 0.5
BoxLayout:
id:_box_mananas
orientation:'vertical'
ToggleButton:
id:_mananas
text: 'Mornings'
on_release: app.Set_mananas()
BoxLayout:
disabled:True
orientation: 'horizontal'
Carousel:
id:_mananaInicioHora
direction:'top'
Label:
text:'9'
Label:
text:'10'
Label:
text:'11'
Label:
text:'12'
Label:
text:'13'
Label:
text:'14'
Label:
text:'15'
Label:
text:'16'
Label:
text: ':'
Carousel:
id:_mananaInicioMinuto
direction:'top'
Label:
text:'00'
Label:
text:'30'
BoxLayout:
disabled:True
orientation: 'horizontal'
Carousel:
id:_mananaFinHora
direction:'top'
Label:
text:'9'
Label:
text:'10'
Label:
text:'11'
Label:
text:'12'
Label:
text:'13'
Label:
text:'14'
Label:
text:'15'
Label:
text:'16'
Label:
text: ':'
Carousel:
id:_mananaFinMinuto
direction:'top'
Label:
text:'00'
Label:
text:'30'
BoxLayout:
id:_box_tardes
orientation:'vertical'
ToggleButton:
id:_tardes
# size_hint_x: 0.3
text: 'Tardes'
on_release: app.Set_tardes()
BoxLayout:
disabled:True
orientation: 'horizontal'
Carousel:
id:_tardeInicioHora
direction:'top'
Label:
text:'16'
Label:
text:'17'
Label:
text:'18'
Label:
text:'19'
Label:
text:'20'
Label:
text:'21'
Label:
text:'22'
Label:
text: ':'
Carousel:
direction:'top'
id:_tardeInicioMinuto
Label:
text:'00'
Label:
text:'30'
BoxLayout:
disabled:True
orientation: 'horizontal'
Carousel:
id:_tardeFinHora
direction:'top'
Label:
text:'16'
Label:
text:'17'
Label:
text:'18'
Label:
text:'19'
Label:
text:'20'
Label:
text:'21'
Label:
text:'22'
Label:
text: ':'
Carousel:
id:_tardeFinMinuto
direction:'top'
Label:
text:'00'
Label:
text:'30'
BoxLayout:
Button:
size_hint_y:0.2
pos_hint:{'x':0,'bottom':1}
text:'SAVE'
on_release:app.Definir_horarios()
<Datos_Alumno>
nombre_FICHA:_nombre_FICHA
editar_nombre_FICHA:_editar_nombre_FICHA
box_nombre:_box_nombre
box_NumeroFicha:_box_NumeroFicha
numero_FICHA:_numero_FICHA
horas_Mes:_horas_Mes
set_num_FICHA:_set_num_FICHA
set_horas_Mes:_set_horas_Mes
dias_sueltos:_dias_sueltos
set_dia_suelto:_set_dia_suelto
box_dias_sueltos:_box_dias_sueltos
BoxLayout:
orientation: 'vertical'
BoxLayout:
size_hint_y: 0.3
orientation: 'horizontal'
# size_hint_y: 0.05
Label:
size_hint: None,None
size_hint_x: 0.6
# font_size: 50
text: '[i][b]FICHA ALUMNO[/b][/i]'
markup: True
Button:
size_hint: None,None
text: 'Main\nScreen'
on_release: app.Switch_to_Main_screen()
BoxLayout:
size_hint_y: 0.1
orientation: 'horizontal'
Label:
size_hint_x: 0.3
text: "[b] Asignatura: [/b]"
markup: True
Label:
text: app.ppal_window.tabObject.current_tab.text
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.1
Label:
size_hint_x: 0.3
text: '[b]Nombre:[/b]'
markup: True
BoxLayout:
id:_box_nombre
Label:
id:_nombre_FICHA
text: root.Nombre_Alumno
ToggleButton:
id:_editar_nombre_FICHA
text: 'Edit'
size_hint_x:0.3
on_press:app.Editar_Nombre_FICHA(root.Nombre_Alumno)
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.1
Label:
size_hint_x: 0.3
text: '[b]Numero de ficha:[/b]'
markup: True
BoxLayout:
id:_box_NumeroFicha
Label:
id:_numero_FICHA
text: root.Numero_FICHA
ToggleButton:
id:_set_num_FICHA
text: 'Edit'
size_hint_x:0.3
on_press:app.Numero_FICHA(root.Nombre_Alumno)
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.1
Label:
size_hint_x: 0.3
text: '[b]Horas al mes:[/b]'
markup: True
BoxLayout:
# id:_box_horasMes
Spinner:
id:_horas_Mes
disabled:True
text: root.Pagado
values:('Mes Completo','2h/semana','1.5h/semana','1h/semana')
ToggleButton:
id:_set_horas_Mes
text: 'Edit'
size_hint_x:0.3
on_press:app.Mes_Pagado()
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.1
Label:
size_hint_x: 0.3
text: '[b]Dia que viene:[/b]'
markup: True
BoxLayout:
id:_box_dias_sueltos
disabled:True
Spinner:
id:_dias_sueltos
text: root.Dia_suelto
values:('Lunes','Martes','Miercoles','Jueves','Viernes','Sabado')
ToggleButton:
id:_set_dia_suelto
text: 'Edit'
size_hint_x:0.3
on_press:app.Set_dia_suelto()
# Spinner:
# size_hint: None, None
# # width: '108sp'
# text: 'Horario'
# # background_normal: 'atlas://data/images/defaulttheme/action_group'
# values:('9.00-18.00','18.00-19.30','19.30-21.00')
BoxLayout:
<MainWindow>:
tabObject:_Tab
checkin:_checkIN
checkout:_checkOUT
pupilBt:_pupil
current_subject:_current_subject
mananas:_mananas
tardes:_tardes
franjaHoraria:_franjaHoraria
box_Manana:_box_Manana
box_Tardes:_box_Tardes
contador_asistencia:_contador_asistencia
alumnos_totales:_alumnos_totales
BoxLayout:
cols: 3
orientation: 'vertical'
BoxLayout:
size_hint_y: 0.2
spacing: 3
padding: 3
Label:
text:'[color=#FF9900][b]Academia\nMagistral[/b][/color]'
# text: '[color=#FF9900][b]AtoS[/b][/color]'
size_hint_x: 0.3
valign: "bottom"
halign: "center"
# font_size: 15
markup: True
Label:
text:'[color=#FF9900][i]'+root.fecha_ahora+'[/color][/i]'
valign: "bottom"
halign: "center"
# font_size: 15
markup: True
BoxLayout:
orientation: 'vertical'
size_hint: 0.5, 0.7
BoxLayout:
Button:
text: '<'
size_hint: 0.15, 1
# pos_hint: {'center_x':0.5,'center_y':0.5}
font_size:50
width: '108sp'
on_release: app.Subject_Left()
Button:
text: '>'
size_hint: 0.15, 1
# pos_hint: {'center_x':0.5,'center_y':0.5}
font_size:50
width: '108sp'
on_release: app.Subject_Right()
Label:
id:_current_subject
text: 'INICIO'
markup: True
#### Barra de herramientas
BoxLayout:
#spacing: 20
#padding: 10
size_hint_y: 0.2
size_hint_x: 1
Button:
# text:'Add\nSubject '# \n by Popup'
# size_hint: None,None
# size:290,300
background_normal:'./Images/Add_subject_N.png'
background_down:'./Images/Add_subject_P.png'
on_release: app.PopUp_Add_tab()
Button:
# text: 'Delete\nSubject'
# size_hint: None,None
# size:290,300
background_normal:'./Images/Del_subject_N.png'
background_down:'./Images/Del_subject_P.png'
on_release: app.PopUp_remove_subject_conf()
# BoxLayout:
# orientation:'vertical'
# Button:
# text: 'Info\nInterfaz'
# on_release: app.info_interfaz()
# Button:
# text: 'InfoTabs'
# on_release: root.info_tabs()
BoxLayout:
orientation:'horizontal'
ToggleButton:
id:_checkIN
# text: 'Check\nAttendance'
# size_hint: None,None
# size:290,300
background_normal:'./Images/Check_List_N.png'
background_down:'./Images/Check_List_P.png'
on_press: app.Asistencia_global()
ToggleButton:
id:_checkOUT
# text: 'Remove\nAttendance'
# size_hint: None,None
# size:290,300
background_normal:'./Images/Del_List_N.png'
background_down:'./Images/Del_List_P.png'
# font_size:13
on_press: app.Borrar_Asistencia_global()
Button:
id:_pupil
# text: 'PUPIL'
# size_hint: None,None
# size:290,300
background_normal:'./Images/Add_pupil_N.png'
background_down:'./Images/Add_pupil_P.png'
on_release: app.PopUp_Nombre_Pupil()
#### End Barra de Herramientas
#### Panel de TABS
TabbedPanel:
id:_Tab
do_default_tab: False
# tab_height:50
# tab_width:200
# background_color: (0, 0, 0, 0)
TabbedPanelItem:
text: '[color=#000000][b]INICIO[/color][/b]'
markup: True
# border: (30, 30,30, 30)
# background_color: (0, 1, 1, 8)
background_normal:'./Images/INICIO_N.png'
background_down:'./Images/INICIO_P.png'
Accordion:
orientation: 'vertical'
AccordionItem:
title: 'Opciones'
Button:
# canvas:
# Ellipse:
# pos: 10,100
# size: 100,100
# source:'Go.png'
size_hint: None,None
border: (-1, -1,-1, -1)
size:150,150
pos_hint:{'x':0,'top':1}
# text: 'Opciones de\nSoftware'
background_normal:'./Images/Settings_N.png'
background_down:'./Images/Settings_P.png'
on_release:app.open_settings()
AccordionItem:
title: 'Importar y Exportar'
Button:
disabled: True
size_hint: None,None
border: (-1, -1,-1, -1)
size:150,150
pos_hint:{'x':0,'top':1}
text: 'Importar\nAlumnos\ndel mes anterior'
Button:
size_hint:None,None
border: (-1, -1,-1, -1)
size:150,150
pos_hint:{'x':0,'top':1}
text: 'Crear\nExcel'
on_release: app.Crear_Excel()
AccordionItem:
title: 'Horarios'
BoxLayout:
orientation:'vertical'
BoxLayout:
pos_hint:{'x':0,'top':1}
orientation:'vertical'
size_hint_y:0.2
Button:
text:'Asignar Horario a una Asignatura'
border: (-1, -1,-1, -1)
on_release:app.Switch_to_Horario()
GridLayout:
cols:8
Label:
text: 'Asignaturas:'
Carousel:
id:_franjaHoraria
min_move:1
anim_cancel_duration:0
anim_type:'in_quad'
index:1
BoxLayout:
ScrollView:
do_scroll_y:True
do_scroll_x:True
GridLayout:
id:_box_Manana
orientation:'vertical'
cols:1
size_hint_y:None
height: self.minimum_height
BoxLayout:
ScrollView:
do_scroll_y:True
do_scroll_x:True
GridLayout:
id:_box_Tardes
orientation:'vertical'
cols:1
size_hint_y:None
height: self.minimum_height
spacing:150
padding:10
BoxLayout:
orientation:'horizontal'
size_hint_y:0.1
ToggleButton:
id:_mananas
text:'Mañanas'
on_press: app.Cambiar_franja_HORARIO_tardes()
ToggleButton:
id:_tardes
state:'down'
text:'Tardes'
on_press: app.Cambiar_franja_HORARIO_mananas()
BoxLayout:
orientation:'horizontal'
size_hint_y:0.05
# canvas.before:
# Color:
# rgb:1,0,0
BoxLayout:
Label:
id:_contador_asistencia
text:'Contador hoy: 0'
BoxLayout:
Label:
id:_alumnos_totales
text:'Alumnos Totales: 0'
#### End