-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathangel_reader_kjvnt.py
More file actions
1332 lines (1273 loc) · 44 KB
/
angel_reader_kjvnt.py
File metadata and controls
1332 lines (1273 loc) · 44 KB
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
#---------------------------------------------------------------------------#
# #
# AngelReader: An E-book & Audio-book Loader #
# Copyright (C) 2018 D.A.E. (wayshower.de@gmail.com) #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
# #
#---------------------------------------------------------------------------#
#! Python 3.6
# Angel Reader (An Ebook and Audiobook Loader)
import tkinter as tk
from pygame import mixer
root = tk.Toplevel()
root.title("ANGEL READER | KJV NEW TESTAMENT COLLECTION")
root.iconbitmap('icons/angel_icon.ico')
# Functions initialized
def close(event=None):
if root:
root.grab_release()
root.withdraw()
def open_lib():
root.deiconify()
root.tkraise()
def display_infos():
global txt_frame2, txt_frame, variable
if variable.get() == "King James Version Of The Bible":
bktitle = f_1t
elif variable.get() == "Ang Biblia (1905)":
bktitle = f_2t
elif variable.get() == "Douay-Rheims Version Of The Bible":
bktitle = f_3t
txt_frame2 = tk.Frame(root, bd=2, relief=tk.SUNKEN)
# Text widget for ebook infos
info_txt = tk.Text(txt_frame2, bg='khaki', wrap=tk.WORD, height=30, width=70, font='Courier 12 bold')
file_obj = open(bktitle, encoding="utf8")
file_content = file_obj.read()
file_obj.close()
info_txt.insert(tk.END, file_content)
info_txt.config(state=tk.DISABLED)
info_txt.pack(side=tk.LEFT, fill=tk.X, padx=5)
# Scrollbar widget for the Text widget
scrollbar = tk.Scrollbar(txt_frame2, orient=tk.VERTICAL, command=info_txt.yview)
scrollbar.pack()
info_txt.configure(yscrollcommand=scrollbar.set)
txt_frame2.pack(side=tk.TOP)
def display_book():
global txt_frame1, txt_frame, variable
if variable.get() == "King James Version Of The Bible":
bktitle = file_1t
elif variable.get() == "Ang Biblia (1905)":
bktitle = file_2t
elif variable.get() == "Douay-Rheims Version Of The Bible":
bktitle = file_3t
txt_frame = tk.Frame(root, bd=2, relief=tk.SUNKEN)
# Text widget for the ebooks
sh_txt = tk.Text(txt_frame, wrap=tk.WORD, height=30, width=80,
fg='black', bg='khaki', font='Courier 12 bold')
file_obj = open(bktitle, encoding="utf8")
file_content = file_obj.read()
file_obj.close()
sh_txt.insert(tk.END, file_content)
sh_txt.config(state=tk.DISABLED)
sh_txt.pack(side=tk.LEFT, fill=tk.X, padx=5)
# Scrollbar widget for the Text widget
xscrollbar = tk.Scrollbar(txt_frame)
xscrollbar.pack(side=tk.BOTTOM, fill=tk.X)
yscrollbar = tk.Scrollbar(txt_frame)
yscrollbar.pack(side=tk.RIGHT, fill=tk.Y)
sh_txt.configure(xscrollcommand=xscrollbar.set,
yscrollcommand=yscrollbar.set)
sh_txt.pack(side=tk.LEFT, fill=tk.X, padx=5)
txt_frame.pack(side=tk.TOP)
xscrollbar.config(command=sh_txt.xview)
yscrollbar.config(command=sh_txt.yview)
def infos_button_clicked():
global txt_frame, infos_button_ON, ebooks_button_ON
infos_button_ON = True
if ebooks_button_ON == True:
txt_frame.destroy()
else:
pass
if infos_button_ON == True:
txt_button.config(state='normal')
display_infos()
gutenberg_button.config(state='disabled')
def ebooks_button_clicked():
global txt_frame2, infos_button_ON, ebooks_button_ON
ebooks_button_ON = True
if infos_button_ON == True:
txt_frame2.destroy()
else:
pass
if ebooks_button_ON == True:
gutenberg_button.config(state='normal')
display_book()
txt_button.config(state='disabled')
def audiobooks_button_clicked():
global audio_title
if audio_var.get() == 'Matthew 1':
audio_title = a1
play_audio()
elif audio_var.get() == 'Matthew 2':
audio_title = a2
play_audio()
elif audio_var.get() == 'Matthew 3':
audio_title = a3
play_audio()
elif audio_var.get() == 'Matthew 4':
audio_title = a4
play_audio()
elif audio_var.get() == 'Matthew 5':
audio_title = a5
play_audio()
elif audio_var.get() == 'Matthew 6':
audio_title = a6
play_audio()
elif audio_var.get() == 'Matthew 7':
audio_title = a7
play_audio()
elif audio_var.get() == 'Matthew 8':
audio_title = a8
play_audio()
elif audio_var.get() == 'Matthew 9':
audio_title = a9
play_audio()
elif audio_var.get() == 'Matthew 10':
audio_title = a10
play_audio()
elif audio_var.get() == 'Matthew 11':
audio_title = a11
play_audio()
elif audio_var.get() == 'Matthew 12':
audio_title = a12
play_audio()
elif audio_var.get() == 'Matthew 13':
audio_title = a13
play_audio()
elif audio_var.get() == 'Matthew 14':
audio_title = a14
play_audio()
elif audio_var.get() == 'Matthew 15':
audio_title = a15
play_audio()
elif audio_var.get() == 'Matthew 16':
audio_title = a16
play_audio()
elif audio_var.get() == 'Matthew 17':
audio_title = a17
play_audio()
elif audio_var.get() == 'Matthew 18':
audio_title = a18
play_audio()
elif audio_var.get() == 'Matthew 19':
audio_title = a19
play_audio()
elif audio_var.get() == 'Matthew 20':
audio_title = a20
play_audio()
elif audio_var.get() == 'Matthew 21':
audio_title = a21
play_audio()
elif audio_var.get() == 'Matthew 22':
audio_title = a22
play_audio()
elif audio_var.get() == 'Matthew 23':
audio_title = a23
play_audio()
elif audio_var.get() == 'Matthew 24':
audio_title = a24
play_audio()
elif audio_var.get() == 'Matthew 25':
audio_title = a25
play_audio()
elif audio_var.get() == 'Matthew 26':
audio_title = a26
play_audio()
elif audio_var.get() == 'Matthew 27':
audio_title = a27
play_audio()
elif audio_var.get() == 'Matthew 28':
audio_title = a28
play_audio()
elif audio_var.get() == 'Mark 1':
audio_title = b1
play_audio()
elif audio_var.get() == 'Mark 2':
audio_title = b2
play_audio()
elif audio_var.get() == 'Mark 3':
audio_title = b3
play_audio()
elif audio_var.get() == 'Mark 4':
audio_title = b4
play_audio()
elif audio_var.get() == 'Mark 5':
audio_title = b5
play_audio()
elif audio_var.get() == 'Mark 6':
audio_title = b6
play_audio()
elif audio_var.get() == 'Mark 7':
audio_title = b7
play_audio()
elif audio_var.get() == 'Mark 8':
audio_title = b8
play_audio()
elif audio_var.get() == 'Mark 9':
audio_title = b9
play_audio()
elif audio_var.get() == 'Mark 10':
audio_title = b10
play_audio()
elif audio_var.get() == 'Mark 11':
audio_title = b11
play_audio()
elif audio_var.get() == 'Mark 12':
audio_title = b12
play_audio()
elif audio_var.get() == 'Mark 13':
audio_title = b13
play_audio()
elif audio_var.get() == 'Mark 14':
audio_title = b14
play_audio()
elif audio_var.get() == 'Mark 15':
audio_title = b15
play_audio()
elif audio_var.get() == 'Mark 16':
audio_title = b16
play_audio()
elif audio_var.get() == 'Luke 1':
audio_title = c1
play_audio()
elif audio_var.get() == 'Luke 2':
audio_title = c2
play_audio()
elif audio_var.get() == 'Luke 3':
audio_title = c3
play_audio()
elif audio_var.get() == 'Luke 4':
audio_title = c4
play_audio()
elif audio_var.get() == 'Luke 5':
audio_title = c5
play_audio()
elif audio_var.get() == 'Luke 6':
audio_title = c6
play_audio()
elif audio_var.get() == 'Luke 7':
audio_title = c7
play_audio()
elif audio_var.get() == 'Luke 8':
audio_title = c8
play_audio()
elif audio_var.get() == 'Luke 9':
audio_title = c9
play_audio()
elif audio_var.get() == 'Luke 10':
audio_title = c10
play_audio()
elif audio_var.get() == 'Luke 11':
audio_title = c11
play_audio()
elif audio_var.get() == 'Luke 12':
audio_title = c12
play_audio()
elif audio_var.get() == 'Luke 13':
audio_title = c13
play_audio()
elif audio_var.get() == 'Luke 14':
audio_title = c14
play_audio()
elif audio_var.get() == 'Luke 15':
audio_title = c15
play_audio()
elif audio_var.get() == 'Luke 16':
audio_title = c16
play_audio()
elif audio_var.get() == 'Luke 17':
audio_title = c17
play_audio()
elif audio_var.get() == 'Luke 18':
audio_title = c18
play_audio()
elif audio_var.get() == 'Luke 19':
audio_title = c19
play_audio()
elif audio_var.get() == 'Luke 20':
audio_title = c20
play_audio()
elif audio_var.get() == 'Luke 21':
audio_title = c21
play_audio()
elif audio_var.get() == 'Luke 22':
audio_title = c22
play_audio()
elif audio_var.get() == 'Luke 23':
audio_title = c23
play_audio()
elif audio_var.get() == 'Luke 24':
audio_title = c24
play_audio()
elif audio_var.get() == 'John 1':
audio_title = d1
play_audio()
elif audio_var.get() == 'John 2':
audio_title = d2
play_audio()
elif audio_var.get() == 'John 3':
audio_title = d3
play_audio()
elif audio_var.get() == 'John 4':
audio_title = d4
play_audio()
elif audio_var.get() == 'John 5':
audio_title = d5
play_audio()
elif audio_var.get() == 'John 6':
audio_title = d6
play_audio()
elif audio_var.get() == 'John 7':
audio_title = d7
play_audio()
elif audio_var.get() == 'John 8':
audio_title = d8
play_audio()
elif audio_var.get() == 'John 9':
audio_title = d9
play_audio()
elif audio_var.get() == 'John 10':
audio_title = d10
play_audio()
elif audio_var.get() == 'John 11':
audio_title = d11
play_audio()
elif audio_var.get() == 'John 12':
audio_title = d12
play_audio()
elif audio_var.get() == 'John 13':
audio_title = d13
play_audio()
elif audio_var.get() == 'John 14':
audio_title = d14
play_audio()
elif audio_var.get() == 'John 15':
audio_title = d15
play_audio()
elif audio_var.get() == 'John 16':
audio_title = d16
play_audio()
elif audio_var.get() == 'John 17':
audio_title = d17
play_audio()
elif audio_var.get() == 'John 18':
audio_title = d18
play_audio()
elif audio_var.get() == 'John 19':
audio_title = d19
play_audio()
elif audio_var.get() == 'John 20':
audio_title = d20
play_audio()
elif audio_var.get() == 'John 21':
audio_title = d21
play_audio()
elif audio_var.get() == 'Acts 1':
audio_title = e1
play_audio()
elif audio_var.get() == 'Acts 2':
audio_title = e2
play_audio()
elif audio_var.get() == 'Acts 3':
audio_title = e3
play_audio()
elif audio_var.get() == 'Acts 4':
audio_title = e4
play_audio()
elif audio_var.get() == 'Acts 5':
audio_title = e5
play_audio()
elif audio_var.get() == 'Acts 6':
audio_title = e6
play_audio()
elif audio_var.get() == 'Acts 7':
audio_title = e7
play_audio()
elif audio_var.get() == 'Acts 8':
audio_title = e8
play_audio()
elif audio_var.get() == 'Acts 9':
audio_title = e9
play_audio()
elif audio_var.get() == 'Acts 10':
audio_title = e10
play_audio()
elif audio_var.get() == 'Acts 11':
audio_title = e11
play_audio()
elif audio_var.get() == 'Acts 12':
audio_title = e12
play_audio()
elif audio_var.get() == 'Acts 13':
audio_title = e13
play_audio()
elif audio_var.get() == 'Acts 14':
audio_title = e14
play_audio()
elif audio_var.get() == 'Acts 15':
audio_title = e15
play_audio()
elif audio_var.get() == 'Acts 16':
audio_title = e16
play_audio()
elif audio_var.get() == 'Acts 17':
audio_title = e17
play_audio()
elif audio_var.get() == 'Acts 18':
audio_title = e18
play_audio()
elif audio_var.get() == 'Acts 19':
audio_title = e19
play_audio()
elif audio_var.get() == 'Acts 20':
audio_title = e20
play_audio()
elif audio_var.get() == 'Acts 21':
audio_title = e21
play_audio()
elif audio_var.get() == 'Acts 22':
audio_title = e22
play_audio()
elif audio_var.get() == 'Acts 23':
audio_title = e23
play_audio()
elif audio_var.get() == 'Acts 24':
audio_title = e24
play_audio()
elif audio_var.get() == 'Acts 25':
audio_title = e25
play_audio()
elif audio_var.get() == 'Acts 26':
audio_title = e26
play_audio()
elif audio_var.get() == 'Acts 27':
audio_title = e27
play_audio()
elif audio_var.get() == 'Acts 28':
audio_title = e28
play_audio()
elif audio_var.get() == 'Romans 1':
audio_title = f1
play_audio()
elif audio_var.get() == 'Romans 2':
audio_title = f2
play_audio()
elif audio_var.get() == 'Romans 3':
audio_title = f3
play_audio()
elif audio_var.get() == 'Romans 4':
audio_title = f4
play_audio()
elif audio_var.get() == 'Romans 5':
audio_title = f5
play_audio()
elif audio_var.get() == 'Romans 6':
audio_title = f6
play_audio()
elif audio_var.get() == 'Romans 7':
audio_title = f7
play_audio()
elif audio_var.get() == 'Romans 8':
audio_title = f8
play_audio()
elif audio_var.get() == 'Romans 9':
audio_title = f9
play_audio()
elif audio_var.get() == 'Romans 10':
audio_title = f10
play_audio()
elif audio_var.get() == 'Romans 11':
audio_title = f11
play_audio()
elif audio_var.get() == 'Romans 12':
audio_title = f12
play_audio()
elif audio_var.get() == 'Romans 13':
audio_title = f13
play_audio()
elif audio_var.get() == 'Romans 14':
audio_title = f14
play_audio()
elif audio_var.get() == 'Romans 15':
audio_title = f15
play_audio()
elif audio_var.get() == 'Romans 16':
audio_title = f16
play_audio()
elif audio_var.get() == '1 Corinthians 1':
audio_title = g1
play_audio()
elif audio_var.get() == '1 Corinthians 2':
audio_title = g2
play_audio()
elif audio_var.get() == '1 Corinthians 3':
audio_title = g3
play_audio()
elif audio_var.get() == '1 Corinthians 4':
audio_title = g4
play_audio()
elif audio_var.get() == '1 Corinthians 5':
audio_title = g5
play_audio()
elif audio_var.get() == '1 Corinthians 6':
audio_title = g6
play_audio()
elif audio_var.get() == '1 Corinthians 7':
audio_title = g7
play_audio()
elif audio_var.get() == '1 Corinthians 8':
audio_title = g8
play_audio()
elif audio_var.get() == '1 Corinthians 9':
audio_title = g9
play_audio()
elif audio_var.get() == '1 Corinthians 10':
audio_title = g10
play_audio()
elif audio_var.get() == '1 Corinthians 11':
audio_title = g11
play_audio()
elif audio_var.get() == '1 Corinthians 12':
audio_title = g12
play_audio()
elif audio_var.get() == '1 Corinthians 13':
audio_title = g13
play_audio()
elif audio_var.get() == '1 Corinthians 14':
audio_title = g14
play_audio()
elif audio_var.get() == '1 Corinthians 15':
audio_title = g15
play_audio()
elif audio_var.get() == '1 Corinthians 16':
audio_title = g16
play_audio()
elif audio_var.get() == '2 Corinthians 1':
audio_title = h1
play_audio()
elif audio_var.get() == '2 Corinthians 2':
audio_title = h2
play_audio()
elif audio_var.get() == '2 Corinthians 3':
audio_title = h3
play_audio()
elif audio_var.get() == '2 Corinthians 4':
audio_title = h4
play_audio()
elif audio_var.get() == '2 Corinthians 5':
audio_title = h5
play_audio()
elif audio_var.get() == '2 Corinthians 6':
audio_title = h6
play_audio()
elif audio_var.get() == '2 Corinthians 7':
audio_title = h7
play_audio()
elif audio_var.get() == '2 Corinthians 8':
audio_title = h8
play_audio()
elif audio_var.get() == '2 Corinthians 9':
audio_title = h9
play_audio()
elif audio_var.get() == '2 Corinthians 10':
audio_title = h10
play_audio()
elif audio_var.get() == '2 Corinthians 11':
audio_title = h11
play_audio()
elif audio_var.get() == '2 Corinthians 12':
audio_title = h12
play_audio()
elif audio_var.get() == '2 Corinthians 13':
audio_title = h13
play_audio()
elif audio_var.get() == 'Galatians 1':
audio_title = i1
play_audio()
elif audio_var.get() == 'Galatians 2':
audio_title = i2
play_audio()
elif audio_var.get() == 'Galatians 3':
audio_title = i3
play_audio()
elif audio_var.get() == 'Galatians 4':
audio_title = i4
play_audio()
elif audio_var.get() == 'Galatians 5':
audio_title = i5
play_audio()
elif audio_var.get() == 'Galatians 6':
audio_title = i6
play_audio()
elif audio_var.get() == 'Ephesians 1':
audio_title = j1
play_audio()
elif audio_var.get() == 'Ephesians 2':
audio_title = j2
play_audio()
elif audio_var.get() == 'Ephesians 3':
audio_title = j3
play_audio()
elif audio_var.get() == 'Ephesians 4':
audio_title = j4
play_audio()
elif audio_var.get() == 'Ephesians 5':
audio_title = j5
play_audio()
elif audio_var.get() == 'Ephesians 6':
audio_title = j6
play_audio()
elif audio_var.get() == 'Philippians 1':
audio_title = k1
play_audio()
elif audio_var.get() == 'Philippians 2':
audio_title = k2
play_audio()
elif audio_var.get() == 'Philippians 3':
audio_title = k3
play_audio()
elif audio_var.get() == 'Philippians 4':
audio_title = k4
play_audio()
elif audio_var.get() == 'Colossians 1':
audio_title = l1
play_audio()
elif audio_var.get() == 'Colossians 2':
audio_title = l2
play_audio()
elif audio_var.get() == 'Colossians 3':
audio_title = l3
play_audio()
elif audio_var.get() == 'Colossians 4':
audio_title = l4
play_audio()
elif audio_var.get() == '1 Thessalonians 1':
audio_title = m1
play_audio()
elif audio_var.get() == '1 Thessalonians 2':
audio_title = m2
play_audio()
elif audio_var.get() == '1 Thessalonians 3':
audio_title = m3
play_audio()
elif audio_var.get() == '1 Thessalonians 4':
audio_title = m4
play_audio()
elif audio_var.get() == '1 Thessalonians 5':
audio_title = m5
play_audio()
elif audio_var.get() == '2 Thessalonians 1':
audio_title = n1
play_audio()
elif audio_var.get() == '2 Thessalonians 2':
audio_title = n2
play_audio()
elif audio_var.get() == '2 Thessalonians 3':
audio_title = n3
play_audio()
elif audio_var.get() == '1 Timothy 1':
audio_title = o1
play_audio()
elif audio_var.get() == '1 Timothy 2':
audio_title = o2
play_audio()
elif audio_var.get() == '1 Timothy 3':
audio_title = o3
play_audio()
elif audio_var.get() == '1 Timothy 4':
audio_title = o4
play_audio()
elif audio_var.get() == '1 Timothy 5':
audio_title = o5
play_audio()
elif audio_var.get() == '1 Timothy 6':
audio_title = o6
play_audio()
elif audio_var.get() == '2 Timothy 1':
audio_title = p1
play_audio()
elif audio_var.get() == '2 Timothy 2':
audio_title = p2
play_audio()
elif audio_var.get() == '2 Timothy 3':
audio_title = p3
play_audio()
elif audio_var.get() == '2 Timothy 4':
audio_title = p4
play_audio()
elif audio_var.get() == 'Titus 1':
audio_title = q1
play_audio()
elif audio_var.get() == 'Titus 2':
audio_title = q2
play_audio()
elif audio_var.get() == 'Titus 3':
audio_title = q3
play_audio()
elif audio_var.get() == 'Philemon 1':
audio_title = r1
play_audio()
elif audio_var.get() == 'Hebrews 1':
audio_title = s1
play_audio()
elif audio_var.get() == 'Hebrews 2':
audio_title = s2
play_audio()
elif audio_var.get() == 'Hebrews 3':
audio_title = s3
play_audio()
elif audio_var.get() == 'Hebrews 4':
audio_title = s4
play_audio()
elif audio_var.get() == 'Hebrews 5':
audio_title = s5
play_audio()
elif audio_var.get() == 'Hebrews 6':
audio_title = s6
play_audio()
elif audio_var.get() == 'Hebrews 7':
audio_title = s7
play_audio()
elif audio_var.get() == 'Hebrews 8':
audio_title = s8
play_audio()
elif audio_var.get() == 'Hebrews 9':
audio_title = s9
play_audio()
elif audio_var.get() == 'Hebrews 10':
audio_title = s10
play_audio()
elif audio_var.get() == 'Hebrews 11':
audio_title = s11
play_audio()
elif audio_var.get() == 'Hebrews 12':
audio_title = s12
play_audio()
elif audio_var.get() == 'Hebrews 13':
audio_title = s13
play_audio()
elif audio_var.get() == 'James 1':
audio_title = t1
play_audio()
elif audio_var.get() == 'James 2':
audio_title = t2
play_audio()
elif audio_var.get() == 'James 3':
audio_title = t3
play_audio()
elif audio_var.get() == 'James 4':
audio_title = t4
play_audio()
elif audio_var.get() == 'James 5':
audio_title = t5
play_audio()
elif audio_var.get() == '1 Peter 1':
audio_title = u1
play_audio()
elif audio_var.get() == '1 Peter 2':
audio_title = u2
play_audio()
elif audio_var.get() == '1 Peter 3':
audio_title = u3
play_audio()
elif audio_var.get() == '1 Peter 4':
audio_title = u4
play_audio()
elif audio_var.get() == '1 Peter 5':
audio_title = u5
play_audio()
elif audio_var.get() == '2 Peter 1':
audio_title = v1
play_audio()
elif audio_var.get() == '2 Peter 2':
audio_title = v2
play_audio()
elif audio_var.get() == '2 Peter 3':
audio_title = v3
play_audio()
elif audio_var.get() == '1 John 1':
audio_title = w1
play_audio()
elif audio_var.get() == '1 John 2':
audio_title = w2
play_audio()
elif audio_var.get() == '1 John 3':
audio_title = w3
play_audio()
elif audio_var.get() == '1 John 4':
audio_title = w4
play_audio()
elif audio_var.get() == '1 John 5':
audio_title = w5
play_audio()
elif audio_var.get() == '2 John 1':
audio_title = w_1
play_audio()
elif audio_var.get() == '3 John 1':
audio_title = ww1
play_audio()
elif audio_var.get() == 'Jude 1':
audio_title = x1
play_audio()
elif audio_var.get() == 'Revelation 1':
audio_title = y1
play_audio()
elif audio_var.get() == 'Revelation 2':
audio_title = y2
play_audio()
elif audio_var.get() == 'Revelation 3':
audio_title = y3
play_audio()
elif audio_var.get() == 'Revelation 4':
audio_title = y4
play_audio()
elif audio_var.get() == 'Revelation 5':
audio_title = y5
play_audio()
elif audio_var.get() == 'Revelation 6':
audio_title = y6
play_audio()
elif audio_var.get() == 'Revelation 7':
audio_title = y7
play_audio()
elif audio_var.get() == 'Revelation 8':
audio_title = y8
play_audio()
elif audio_var.get() == 'Revelation 9':
audio_title = y9
play_audio()
elif audio_var.get() == 'Revelation 10':
audio_title = y10
play_audio()
elif audio_var.get() == 'Revelation 11':
audio_title = y11
play_audio()
elif audio_var.get() == 'Revelation 12':
audio_title = y12
play_audio()
elif audio_var.get() == 'Revelation 13':
audio_title = y13
play_audio()
elif audio_var.get() == 'Revelation 14':
audio_title = y14
play_audio()
elif audio_var.get() == 'Revelation 15':
audio_title = y15
play_audio()
elif audio_var.get() == 'Revelation 16':
audio_title = y16
play_audio()
elif audio_var.get() == 'Revelation 17':
audio_title = y17
play_audio()
elif audio_var.get() == 'Revelation 18':
audio_title = y18
play_audio()
elif audio_var.get() == 'Revelation 19':
audio_title = y19
play_audio()
elif audio_var.get() == 'Revelation 20':
audio_title = y20
play_audio()
elif audio_var.get() == 'Revelation 21':
audio_title = y21
play_audio()
elif audio_var.get() == 'Revelation 22':
audio_title = y22
play_audio()
def play_audio():
global audio_title
mixer.init()
mixer.music.load(audio_title)
mixer.music.play()
def stop_button_clicked():
mixer.music.stop()
def pause_button_clicked():
mixer.music.pause()
def resume_button_clicked():
mixer.music.unpause()
infos_button_ON = False
ebooks_button_ON = False
# Text Files
file_1t = 'ebooks/kjv-bible.txt'
file_2t = 'ebooks/ang_biblia_1905.txt'
file_3t = 'ebooks/douay-bible.txt'
f_1t = 'infos/kjvinfo_2.txt'
f_2t = 'infos/tagbible_info.txt'
f_3t = 'infos/douay-info.txt'
# Audio Files
a1 = "KJV-NT/40_KJV_MAT001.mp3"
a2 = "KJV-NT/40_KJV_MAT002.mp3"
a3 = "KJV-NT/40_KJV_MAT003.mp3"
a4 = "KJV-NT/40_KJV_MAT004.mp3"
a5 = "KJV-NT/40_KJV_MAT005.mp3"
a6 = "KJV-NT/40_KJV_MAT006.mp3"
a7 = "KJV-NT/40_KJV_MAT007.mp3"
a8 = "KJV-NT/40_KJV_MAT008.mp3"
a9 = "KJV-NT/40_KJV_MAT009.mp3"
a10 = "KJV-NT/40_KJV_MAT010.mp3"
a11 = "KJV-NT/40_KJV_MAT011.mp3"
a12 = "KJV-NT/40_KJV_MAT012.mp3"
a13 = "KJV-NT/40_KJV_MAT013.mp3"
a14 = "KJV-NT/40_KJV_MAT014.mp3"
a15 = "KJV-NT/40_KJV_MAT015.mp3"
a16 = "KJV-NT/40_KJV_MAT016.mp3"
a17 = "KJV-NT/40_KJV_MAT017.mp3"
a18 = "KJV-NT/40_KJV_MAT018.mp3"
a19 = "KJV-NT/40_KJV_MAT019.mp3"
a20 = "KJV-NT/40_KJV_MAT020.mp3"
a21 = "KJV-NT/40_KJV_MAT021.mp3"
a22 = "KJV-NT/40_KJV_MAT022.mp3"
a23 = "KJV-NT/40_KJV_MAT023.mp3"
a24 = "KJV-NT/40_KJV_MAT024.mp3"
a25 = "KJV-NT/40_KJV_MAT025.mp3"
a26 = "KJV-NT/40_KJV_MAT026.mp3"
a27 = "KJV-NT/40_KJV_MAT027.mp3"
a28 = "KJV-NT/40_KJV_MAT028.mp3"
b1 = "KJV-NT/41_KJV_MRK001.mp3"
b2 = "KJV-NT/41_KJV_MRK002.mp3"
b3 = "KJV-NT/41_KJV_MRK003.mp3"
b4 = "KJV-NT/41_KJV_MRK004.mp3"
b5 = "KJV-NT/41_KJV_MRK005.mp3"
b6 = "KJV-NT/41_KJV_MRK006.mp3"
b7 = "KJV-NT/41_KJV_MRK007.mp3"
b8 = "KJV-NT/41_KJV_MRK008.mp3"
b9 = "KJV-NT/41_KJV_MRK009.mp3"
b10 = "KJV-NT/41_KJV_MRK010.mp3"
b11 = "KJV-NT/41_KJV_MRK011.mp3"
b12 = "KJV-NT/41_KJV_MRK012.mp3"
b13 = "KJV-NT/41_KJV_MRK013.mp3"