forked from lesivan/Vocaleando-V2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vocales.py
1211 lines (899 loc) · 46.9 KB
/
vocales.py
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
import pygame
import sys, gtk
import pygame.locals
from pygame.constants import *
import random
#pygame.init()
ocultar = 1
class interfaz():
def __init__(self):
self.portada=pygame.image.load("img/PortadaFF.jpg")
self.menu=pygame.image.load("img/MenuFF.jpg")
self.btnVocales=pygame.image.load("img/Mascara_Ejercicios_Borrador.jpg")
self.imgconsonantes=pygame.image.load("img/Consonantes_Borrador.jpg")
self.imgact1Vocales=pygame.image.load("img/EjerVocal1.jpg")
self.img1VocalesRevisado=pygame.image.load("img/EjerVocal1_Revi.jpg")
self.imgact2Vocales=pygame.image.load("img/EjerVocal2.jpg")
self.img2VocalesRevisado=pygame.image.load("img/EjerVocal2_Revi.jpg")
self.imgact3Vocales=pygame.image.load("img/EjerVocal3.jpg")
self.img3VocalesRevisado=pygame.image.load("img/EjerVocal3_Revi.jpg")
self.imgact4Vocales=pygame.image.load("img/EjerVocal4.jpg")
self.img4VocalesRevisado=pygame.image.load("img/EjerVocal4_Revi.jpg")
self.imgact5Vocales=pygame.image.load("img/EjerVocal5.jpg")
self.img5VocalesRevisado=pygame.image.load("img/EjerVocal5_Revi.jpg")
self.imgact6Vocales=pygame.image.load("img/EjerVocal6.jpg")
self.img6VocalesRevisado=pygame.image.load("img/EjerVocal6_Revi.jpg")
self.img7Vocales=pygame.image.load("img/EjerVocal7.jpg")
self.img7VocalesRevisado=pygame.image.load("img/EjerVocal7_Revi.jpg")
self.img8Vocales=pygame.image.load("img/EjerVocal8.jpg")
self.img8VocalesRevisado=pygame.image.load("img/EjerVocal8_Revi.jpg")
self.img9Vocales=pygame.image.load("img/EjerVocal9.jpg")
self.img9VocalesRevisado=pygame.image.load("img/EjerVocal9_Revi.jpg")
self.img10Vocales=pygame.image.load("img/EjerVocal10.jpg")
self.img10VocalesRevisado=pygame.image.load("img/EjerVocal10_Revi.jpg")
self.imgMenu_consonates_cerrar=pygame.image.load(("img/Menu_Consonate_Cerrar.jpg"))
self.img1consonantes=pygame.image.load("img/EjerConsonante1.jpg")
self.imgconsonates1_Revi=pygame.image.load("img/EjerConsonante1_Revi.jpg")
self.img2consonantes=pygame.image.load("img/EjerConsonante2.jpg")
self.imgconsonantes2_Revi=pygame.image.load("img/EjerConsonante2_Revi.jpg")
self.img3consonantes=pygame.image.load("img/EjerConsonante3.jpg")
self.imgconsonates3_Revi=pygame.image.load("img/EjerConsonante3_Revi.jpg")
self.img4consonantes=pygame.image.load("img/EjerConsonante4.jpg")
self.imgconsonates4_Revi=pygame.image.load("img/EjerConsonante4_Revi.jpg")
self.img5consonantes=pygame.image.load("img/EjerConsonante5.jpg")
self.imgconsonantes5_Revi=pygame.image.load("img/EjerConsonante5_Revi.jpg")
self.img6consonantes=pygame.image.load("img/EjerConsonante6.jpg")
self.imgconsonantes6_Revi=pygame.image.load("img/EjerConsonante6_Revi.jpg")
self.img1consonantesMP1=pygame.image.load("img/EjerConsonanteMP1.jpg")
self.imgconsonantesMP1_Revi=pygame.image.load("img/EjerConsonanteMP1_Revi.jpg")
self.img2consonantesMP2=pygame.image.load("img/EjerConsonanteMP2.jpg")
self.imgconsonantesMP2_Revi=pygame.image.load("img/EjerConsonanteMP2_Revi.jpg")
self.img3consonantesMP3=pygame.image.load("img/EjerConsonanteMP3.jpg")
self.imgconsonantesMP3_Revi=pygame.image.load("img/EjerConsonanteMP3_Revi.jpg")
self.img1consonantePM1=pygame.image.load("img/EjerConsonantePM1.jpg")
self.imgconsonantesPM1_Revi=pygame.image.load("img/EjerConsonantePM1_Revi.jpg")
self.img2consonantesPM2=pygame.image.load("img/EjerConsonantePM2.jpg")
self.imgconsonantesPM2_Revi=pygame.image.load("img/EjerConsonantePM2_Revi.jpg")
self.imgconsonantesPM3=pygame.image.load("img/EjerConsonantePM3.jpg")
self.img3consonantesPM3=pygame.image.load("img/EjerConsonantePM3_Revi.jpg")
self.imgFinal=pygame.image.load("img/fin.jpg")
def inter_principal(self, superficie, texto): #ventana 1 principal
superficie.blit(self.portada,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 506 and x_mouse <= 681) and (y_mouse > 410 and y_mouse < 505) :
superficie.blit(self.menu,(0,0))
ocultar=2
def interfaz_dos(self, superficie, texto):#Segunda interfaz de la aplicacion, presenta las opciones de
#los botones vocal y consonantes
superficie.blit(self.menu, (0,0))
#self.menu=pygame.transform.scale(self.menu,(1200,845))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 702 and x_mouse <= 808) and (y_mouse > 244 and y_mouse < 315) :
ocultar = 3
elif (x_mouse > 772 and x_mouse <= 879) and (y_mouse > 458 and y_mouse < 529) :
ocultar=4
def interfaz_tres(self,superficie):#ventana principal de las vocales, despues de hacer clic
superficie.blit(self.btnVocales,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1002 and x_mouse <= 1122) and (y_mouse > 660 and y_mouse < 762) :
ocultar= random.randrange(11, 31, 2)
#ocultar=5
def interfaz_cuatro(self,superficie):#ventana principal al hacer clic en el boton consonates
superficie.blit(self.imgconsonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1034 and x_mouse <= 1159) and (y_mouse > 130 and y_mouse < 246) :
ocultar=5
if (x_mouse > 1034 and x_mouse <= 1159) and (y_mouse > 130 and y_mouse < 246) :
ocultar=5.1
def interfaz_cinco(self,superficie):#ventana del primer ejercicio de las vocales.
superficie.blit(self.imgact1Vocales,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 687 and x_mouse <= 789) and (y_mouse > 215 and y_mouse < 305) :
ocultar=11
elif (x_mouse > 687 and x_mouse <= 789) and (y_mouse > 330 and y_mouse < 422) :
ocultar=11
elif (x_mouse > 687 and x_mouse <= 789) and (y_mouse > 452 and y_mouse < 543) :
ocultar=11
elif (x_mouse > 687 and x_mouse <= 789) and (y_mouse > 570 and y_mouse < 663) :
ocultar=11
elif (x_mouse > 687 and x_mouse <= 789) and (y_mouse > 688 and y_mouse < 779) :
ocultar=11
def interfaz_seis(self,superficie):#img bueno
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img1VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1001 and x_mouse <= 1125) and (y_mouse > 657 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_siete(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgact2Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 688 and x_mouse <= 788) and (y_mouse > 215 and y_mouse < 306) :
ocultar=14
elif (x_mouse > 688 and x_mouse <= 788) and (y_mouse > 334 and y_mouse < 424) :
ocultar=14
elif (x_mouse > 688 and x_mouse <= 788) and (y_mouse > 453 and y_mouse < 543) :
ocultar=14
elif (x_mouse > 688 and x_mouse <= 788) and (y_mouse > 573 and y_mouse < 664) :
ocultar=14
elif (x_mouse > 688 and x_mouse <= 788) and (y_mouse > 690 and y_mouse < 780) :
ocultar=14
def interfaz_ocho(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img2VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 657 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_nueve(self,superficie):#actividad 3 de las vocales
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgact3Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 207 and y_mouse < 318) :
ocultar=16
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 327 and y_mouse < 437) :
ocultar=16
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 457 and y_mouse < 566) :
ocultar=16
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 580 and y_mouse < 689) :
ocultar=16
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 701 and y_mouse < 812) :
ocultar=16
def interfaz_diez(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img3VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1002 and x_mouse <= 1125) and (y_mouse > 657 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_once(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgact4Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 204 and y_mouse < 316) :
ocultar=18
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 325 and y_mouse < 435) :
ocultar=18
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 455 and y_mouse < 565) :
ocultar=18
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 578 and y_mouse < 688) :
ocultar=18
elif (x_mouse > 666 and x_mouse <= 800) and (y_mouse > 701 and y_mouse < 811) :
ocultar=18
def interfaz_doce(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img4VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 656 and y_mouse < 771):
ocultar= random.randrange(11, 31, 2)
def interfaz_trece(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgact5Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 287 and y_mouse < 356) :
ocultar=20
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 385 and y_mouse < 458) :
ocultar=20
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 489 and y_mouse < 561) :
ocultar=20
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 597 and y_mouse < 669) :
ocultar=20
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 700 and y_mouse < 772) :
ocultar=20
def interfaz_catorce(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img5VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 658 and y_mouse < 769):
ocultar= random.randrange(11, 31, 2)
def interfaz_quince(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgact6Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 302 and y_mouse < 380) :
ocultar=22
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 411 and y_mouse < 487) :
ocultar=22
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 521 and y_mouse < 598) :
ocultar=22
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 636 and y_mouse < 713) :
ocultar=22
elif (x_mouse > 690 and x_mouse <= 788) and (y_mouse > 745 and y_mouse < 823) :
ocultar=22
def interfaz_dieciseis(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img6VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 657 and y_mouse < 773):
ocultar= random.randrange(11, 31, 2)
def interfaz_diecisiete(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img7Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 247 and y_mouse < 332) :
ocultar=24
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 356 and y_mouse < 441) :
ocultar=24
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 466 and y_mouse < 553) :
ocultar=24
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 576 and y_mouse < 661) :
ocultar=24
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 687 and y_mouse < 772) :
ocultar=24
def interfaz_dieciocho(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img7VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 658 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_diecinueve(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img8Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 246 and y_mouse < 331) :
ocultar=26
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 355 and y_mouse < 440) :
ocultar=26
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 466 and y_mouse < 552) :
ocultar=26
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 575 and y_mouse < 660) :
ocultar=26
elif (x_mouse > 665 and x_mouse <= 786) and (y_mouse > 686 and y_mouse < 771) :
ocultar=26
def interfaz_veinte(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img8VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 658 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_veinte_uno(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img9Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 688 and x_mouse <= 797) and (y_mouse > 268 and y_mouse < 352) :
ocultar=28
elif (x_mouse > 688 and x_mouse <= 797) and (y_mouse > 376 and y_mouse < 459) :
ocultar=28
elif (x_mouse > 688 and x_mouse <= 797) and (y_mouse > 484 and y_mouse < 567) :
ocultar=28
elif (x_mouse > 688 and x_mouse <= 797) and (y_mouse > 588 and y_mouse < 673) :
ocultar=28
elif (x_mouse > 688 and x_mouse <= 797) and (y_mouse > 698 and y_mouse < 782) :
ocultar=28
def interfaz_veinte_dos(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img9VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 658 and y_mouse < 770):
ocultar= random.randrange(11, 31, 2)
def interfaz_veinte_tres(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img10Vocales,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 686 and x_mouse <= 795) and (y_mouse > 267 and y_mouse < 351) :
ocultar=30
elif (x_mouse > 686 and x_mouse <= 795) and (y_mouse > 375 and y_mouse < 460) :
ocultar=30
elif (x_mouse > 686 and x_mouse <= 795) and (y_mouse > 483 and y_mouse < 567) :
ocultar=30
elif (x_mouse > 686 and x_mouse <= 795) and (y_mouse > 588 and y_mouse < 672) :
ocultar=30
elif (x_mouse > 686 and x_mouse <= 795) and (y_mouse > 697 and y_mouse < 780) :
ocultar=30
def interfaz_veinte_cuatro(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.img10VocalesRevisado,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1004 and x_mouse <= 1124) and (y_mouse > 657 and y_mouse < 771):
ocultar=31
def interfaz_veinte_cinco(self,superficie):
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
superficie.blit(self.imgMenu_consonates_cerrar,(0,0))
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 702 and x_mouse <= 810) and (y_mouse > 263 and y_mouse < 333):
ocultar=32
elif (x_mouse > 544 and x_mouse <= 629) and (y_mouse > 541 and y_mouse < 639):
sys.exit(0)
def interfaz_veinte_seis(self,superficie):
superficie.blit(self.img1consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 262 and x_mouse <= 368) and (y_mouse > 515 and y_mouse < 614):
ocultar=33
elif (x_mouse > 262 and x_mouse <= 368) and (y_mouse > 633 and y_mouse < 732):
ocultar=33
def interfaz_veinte_siete(self,superficie):
superficie.blit(self.imgconsonates1_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1031 and x_mouse <= 1154) and (y_mouse > 130 and y_mouse < 246):
ocultar=34
def interfaz_veinte_ocho(self,superficie):
superficie.blit(self.img2consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 253 and x_mouse <= 400) and (y_mouse >517 and y_mouse < 637):
ocultar=35
elif (x_mouse > 253 and x_mouse <= 400) and (y_mouse > 648 and y_mouse < 768):
ocultar=35
def interfaz_veinte_nueve(self,superficie):
superficie.blit(self.imgconsonantes2_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1031 and x_mouse <= 1156) and (y_mouse >132 and y_mouse < 247):
ocultar=36
def interfaz_treinta(self,superficie):
superficie.blit(self.img3consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 211 and x_mouse <= 361) and (y_mouse >530 and y_mouse < 645):
ocultar=37
if (x_mouse > 211 and x_mouse <= 361) and (y_mouse >668 and y_mouse < 785):
ocultar=37
def interfaz_treinta_uno(self,superficie):
superficie.blit(self.imgconsonates3_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1031 and x_mouse <= 1156) and (y_mouse >133 and y_mouse < 247):
ocultar=38
def interfaz_treinta_dos(self,superficie):
superficie.blit(self.img4consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 278 and x_mouse <= 383) and (y_mouse >508 and y_mouse < 608):
ocultar=39
if (x_mouse > 278 and x_mouse <= 383) and (y_mouse >626 and y_mouse < 723):
ocultar=39
def interfaz_treinta_tres(self,superficie):
superficie.blit(self.imgconsonates4_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1155) and (y_mouse >129 and y_mouse < 245):
ocultar=40
def interfaz_treinta_cuatro(self,superficie):
superficie.blit(self.img5consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 265 and x_mouse <= 592) and (y_mouse >525 and y_mouse < 640):
ocultar=41
if (x_mouse > 265 and x_mouse <= 592) and (y_mouse >664 and y_mouse < 780):
ocultar=41
def interfaz_treinta_cinco(self,superficie):
superficie.blit(self.imgconsonantes5_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1031 and x_mouse <= 1155) and (y_mouse >130 and y_mouse < 245):
ocultar=42
def interfaz_treinta_seis(self,superficie):
superficie.blit(self.img6consonantes,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 277 and x_mouse <= 423) and (y_mouse >521 and y_mouse < 640):
ocultar=43
if (x_mouse > 277 and x_mouse <= 423) and (y_mouse >671 and y_mouse < 789):
ocultar=43
def interfaz_treinta_siete(self,superficie):
superficie.blit(self.imgconsonantes6_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1156) and (y_mouse >130 and y_mouse < 245):
ocultar=44
def interfaz_treinta_ocho(self,superficie):
superficie.blit(self.img1consonantesMP1,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 169 and x_mouse <= 445) and (y_mouse >536 and y_mouse < 655):
ocultar=45
if (x_mouse > 169 and x_mouse <= 445) and (y_mouse >667 and y_mouse < 785):
ocultar=45
def interfaz_treinta_nueve(self,superficie):
superficie.blit(self.imgconsonantesMP1_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1156) and (y_mouse >130 and y_mouse < 245):
ocultar=46
def interfaz_cuarenta(self,superficie):
superficie.blit(self.img2consonantesMP2,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 188 and x_mouse <= 593) and (y_mouse >544 and y_mouse < 644):
ocultar=46.1
if (x_mouse > 188 and x_mouse <= 593) and (y_mouse >680 and y_mouse < 782):
ocultar=46.1
def interfaz_cuarenta_1(self,superficie):
superficie.blit(self.imgconsonantesMP2_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1156) and (y_mouse >130 and y_mouse < 245):
ocultar=46.2
def interfaz_cuarenta_uno(self,superficie):
superficie.blit(self.img3consonantesMP3,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 178 and x_mouse <= 502) and (y_mouse >506 and y_mouse < 644):
ocultar=47
if (x_mouse > 178 and x_mouse <= 502) and (y_mouse >660 and y_mouse < 806):
ocultar=47
def interfaz_cuarenta_dos(self,superficie):
superficie.blit(self.imgconsonantesMP3_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1156) and (y_mouse >130 and y_mouse < 245):
ocultar=48
def interfaz_cuarenta_tres(self,superficie):
superficie.blit(self.img1consonantePM1,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 189 and x_mouse <= 422) and (y_mouse >545 and y_mouse < 642):
ocultar=49
if (x_mouse > 189 and x_mouse <= 422) and (y_mouse >686 and y_mouse < 783):
ocultar=49
def interfaz_cuarenta_cuatro(self,superficie):
superficie.blit(self.imgconsonantesPM1_Revi,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN:
if (x_mouse > 1032 and x_mouse <= 1156) and (y_mouse >130 and y_mouse < 245):
ocultar=50
def interfaz_cuarenta_cinco(self,superficie):
superficie.blit(self.img2consonantesPM2,(0,0))
global ocultar
x_mouse, y_mouse = pygame.mouse.get_pos()
while gtk.events_pending():
gtk.main_iteration()
for eventos in pygame.event.get():
if eventos.type == QUIT:
sys.exit(0)
elif eventos.type == MOUSEBUTTONDOWN: