-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPsiNorm.py
3171 lines (2366 loc) · 129 KB
/
PsiNorm.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
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
"""
PsiNorm Persentil Hesaplayıcı - Versiyon 1.9.2
Copyright (C) 2017 Bilal Bahadır Akbulut & Yavuz Ayhan
Bu program özgür yazılımdır: Özgür Yazılım Vakfı tarafından yayımlanan
GNU Genel Kamu Lisansı’nın sürüm 3 ya da (isteğinize bağlı olarak)
daha sonraki sürümlerinin hükümleri altında yeniden dağıtabilir ve/veya
değiştirebilirsiniz.
Bu program, yararlı olması umuduyla dağıtılmış olup, programın BİR TEMİNATI YOKTUR;
TİCARETİNİN YAPILABİLİRLİĞİNE VE ÖZEL BİR AMAÇ İÇİN UYGUNLUĞUNA dair bir teminat da vermez.
Ayrıntılar için GNU Genel Kamu Lisansı’na göz atınız.
Bu programla birlikte GNU Genel Kamu Lisansı’nın bir kopyasını elde etmiş olmanız gerekir.
Eğer elinize ulaşmadıysa <http://www.gnu.org/licenses/> adresine bakınız.
--------------------------------------------------------------
Dr. Bilal Bahadır Akbulut
İletişim adresi: [email protected]
------------------------------------
PsiNorm Percentile Calculator - Version 1.9.2
Copyright (C) 2017 Bilal Bahadır Akbulut & Yavuz Ayhan
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 <http://www.gnu.org/licenses/>.
-------------------------------------------------------------
Dr. Bilal Bahadır Akbulut
contact adress: [email protected]
"""
def resetGlobals():
globals()["patientAdmin"] = None
globals()["patientID"] = None
globals()["patientName"] = None
globals()["patientAge"] = None
globals()["patientSex"] = None
globals()["patientEdu"] = None
globals()["whatToDo"] = None
globals()["testNumToDo"] = None
globals()["patientNotes"] = None
def guiSettings():
import tkinter as tk
titleText = "PsiNorm Persentil Hesaplayıcı - 1.9.2 - Seçenekler "
class MyFirstGUI:
def __init__(self, master):
self.master = master
master.title("PsiNorm Persentil Hesaplayıcı")
self.label = tk.Label(master, text=titleText, relief=tk.GROOVE, font= (None, 16))
self.label.grid(row=0, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=5)
self.label = tk.Label(master, text="Kaydedilecek klasör: ", relief=tk.GROOVE)
self.label.grid(row=1, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.labelFolderName = tk.Label(master, relief=tk.GROOVE,
text= "Results (Varsayılan)" if (settings("folder_name")=="default") else settings("folder_name"))
self.labelFolderName.grid(row=1, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryFolderName = tk.Entry(master, width=50)
self.entryFolderName.grid(row=1, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonFolderNameSave = tk.Button(master, text="Kaydet", command=self.folder_name)
self.buttonFolderNameSave.grid(row=1, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonFolderNameDefault = tk.Button(master, text="Varsayılan", command=self.buttonFolderNameDefaultFunc)
self.buttonFolderNameDefault.grid(row=1, column=4, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="CSV raporu çıkar: ", relief=tk.GROOVE)
self.label.grid(row=2, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button1T = tk.Button(master, text="Evet", command=self.button1, state = (tk.DISABLED if settings("output_csv") else tk.NORMAL))
self.button1T.grid(row=2, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.button1F = tk.Button(master, text="Hayır", command=self.button1, state = (tk.NORMAL if settings("output_csv") else tk.DISABLED))
self.button1F.grid(row=2, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="Text raporu çıkar: ", relief=tk.GROOVE)
self.label.grid(row=3, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button2T = tk.Button(master, text="Evet", command=self.button2, state = (tk.DISABLED if settings("output_txt") else tk.NORMAL))
self.button2T.grid(row=3, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.button2F = tk.Button(master, text="Hayır", command=self.button2, state = (tk.NORMAL if settings("output_txt") else tk.DISABLED))
self.button2F.grid(row=3, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="Excel raporu çıkar: ", relief=tk.GROOVE)
self.label.grid(row=4, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button3T = tk.Button(master, text="Evet", command=self.button3, state = (tk.DISABLED if settings("output_excel") else tk.NORMAL))
self.button3T.grid(row=4, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.button3F = tk.Button(master, text="Hayır", command=self.button3, state = (tk.NORMAL if settings("output_excel") else tk.DISABLED))
self.button3F.grid(row=4, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="Excel dosyasının ismi: ", relief=tk.GROOVE)
self.label.grid(row=5, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.labelExcelName = tk.Label(master, relief=tk.GROOVE,
text= "Results (Varsayılan)" if (settings("excel_name")=="default") else settings("excel_name"))
self.labelExcelName.grid(row=5, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryExcelName = tk.Entry(master, width=50)
self.entryExcelName.grid(row=5, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonExcelNameSave = tk.Button(master, text="Kaydet", command=self.excel_name)
self.buttonExcelNameSave.grid(row=5, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonExcelNameDefault = tk.Button(master, text="Varsayılan", command=self.buttonExcelNameDefaultFunc)
self.buttonExcelNameDefault.grid(row=5, column=4, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="Rapor dosyası isim formatı: ", relief=tk.GROOVE)
self.label.grid(row=6, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button4Date = tk.Button(master, text="Önce tarih", command=self.button4DateFunc, state = (tk.DISABLED if settings("textFileNameFormat")=="firstDate" else tk.NORMAL))
self.button4Date.grid(row=6, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.button4Admin = tk.Button(master, text="Önce uygulayıcı", command=self.button4AdminFunc, state = (tk.DISABLED if settings("textFileNameFormat")=="firstAdmin" else tk.NORMAL))
self.button4Admin.grid(row=6, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.button4ID = tk.Button(master, text="Önce hasta kodu", command=self.button4IDFunc, state = (tk.DISABLED if settings("textFileNameFormat")=="firstID" else tk.NORMAL))
self.button4ID.grid(row=6, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label = tk.Label(master, text="Z skoru yorumlanması: ", relief=tk.GROOVE)
self.label.grid(row=7, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button5ZNorm = tk.Button(master, text="0-1 Normal, 1-2 Hafif, 2-3 Orta, 3+ Ağır(Varsayılan)", command=self.button5ZNorm, state = (tk.DISABLED if settings("zInterval")=="0-1" else tk.NORMAL))
self.button5ZNorm.grid(row=7, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.button5ZAlt = tk.Button(master, text="0-1.5 Normal, 1.5-2 Hafif, 2-3 Orta, 3+ Ağır", command=self.button5ZAlt, state = (tk.DISABLED if settings("zInterval")=="0-1.5" else tk.NORMAL))
self.button5ZAlt.grid(row=7, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.buttonexit = tk.Button(master, text="Çıkış", command=self.exitFunc)
self.buttonexit.grid(row=8, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
def exitFunc(self):
root.destroy()
def folder_name(self):
new_setting = self.entryFolderName.get()
if checkGuiInputString(new_setting):
new_setting = new_setting.replace(" ", "_")
changeSettingsString("folder_name", new_setting)
self.labelFolderName.config(text= "Results (Varsayılan)" if (settings("folder_name")=="default") else settings("folder_name"))
else:
tk.messagebox.showerror("Hata!", "Lütfen harf, sayı, '-', '_', '(' ve ')' dışında giriş yapmayınız.")
def buttonFolderNameDefaultFunc(self):
changeSettingsString("folder_name", "default")
self.labelFolderName.config(text= "Results (Varsayılan)" if (settings("folder_name")=="default") else settings("folder_name"))
def button1(self):
changeSettingsBool("output_csv")
self.button1T.config(state= (tk.DISABLED if settings("output_csv") else tk.NORMAL))
self.button1F.config(state= (tk.NORMAL if settings("output_csv") else tk.DISABLED))
def button2(self):
changeSettingsBool("output_txt")
self.button2T.config(state= (tk.DISABLED if settings("output_txt") else tk.NORMAL))
self.button2F.config(state= (tk.NORMAL if settings("output_txt") else tk.DISABLED))
def button3(self):
changeSettingsBool("output_excel")
self.button3T.config(state= (tk.DISABLED if settings("output_excel") else tk.NORMAL))
self.button3F.config(state= (tk.NORMAL if settings("output_excel") else tk.DISABLED))
def excel_name(self):
new_setting = self.entryExcelName.get()
if checkGuiInputString(new_setting):
new_setting = new_setting.replace(" ", "_")
changeSettingsString("excel_name", new_setting)
self.labelExcelName.config(text= "Results (Varsayılan)" if (settings("excel_name")=="default") else settings("excel_name"))
else:
tk.messagebox.showerror("Hata!", "Lütfen harf, sayı, '-', '_', '(' ve ')' dışında giriş yapmayınız.")
def buttonExcelNameDefaultFunc(self):
changeSettingsString("excel_name", "default")
self.labelExcelName.config(text= "Results (Varsayılan)" if (settings("excel_name")=="default") else settings("excel_name"))
def button4DateFunc(self):
changeSettingsString("textFileNameFormat", "firstDate")
self.button4Date.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstDate" else tk.NORMAL))
self.button4Admin.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstAdmin" else tk.NORMAL))
self.button4ID.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstID" else tk.NORMAL))
def button4AdminFunc(self):
changeSettingsString("textFileNameFormat", "firstAdmin")
self.button4Date.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstDate" else tk.NORMAL))
self.button4Admin.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstAdmin" else tk.NORMAL))
self.button4ID.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstID" else tk.NORMAL))
def button4IDFunc(self):
changeSettingsString("textFileNameFormat", "firstID")
self.button4Date.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstDate" else tk.NORMAL))
self.button4Admin.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstAdmin" else tk.NORMAL))
self.button4ID.config(state = (tk.DISABLED if settings("textFileNameFormat")=="firstID" else tk.NORMAL))
def button5ZNorm(self):
changeSettingsString("zInterval", "0-1")
self.button5ZNorm.config(state = (tk.DISABLED if settings("zInterval")=="0-1" else tk.NORMAL))
self.button5ZAlt.config(state = (tk.DISABLED if settings("zInterval")=="0-1.5" else tk.NORMAL))
def button5ZAlt(self):
changeSettingsString("zInterval", "0-1.5")
self.button5ZNorm.config(state = (tk.DISABLED if settings("zInterval")=="0-1" else tk.NORMAL))
self.button5ZAlt.config(state = (tk.DISABLED if settings("zInterval")=="0-1.5" else tk.NORMAL))
root = tk.Tk()
tk.Grid.rowconfigure(root, [0, 1, 2, 3, 4, 5, 6, 7, 8], weight=1)
tk.Grid.columnconfigure(root, [0, 1, 2, 3, 4], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
my_gui = MyFirstGUI(root)
root.mainloop()
def guiPatientInfo():
import tkinter as tk
titleText = "PsiNorm Persentil Hesaplayıcı - 1.9.2 - Hasta Bilgileri"
patientSex = None
class patientInfo:
def __init__(self, master):
self.master = master
master.title("PsiNorm Persentil Hesaplayıcı")
root.bind("<Return>", self.pressEnter)
self.label = tk.Label(master, text=titleText, relief=tk.GROOVE, font= (None, 16))
self.label.grid(row=0, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=5)
self.label = tk.Label(master, text="Testi uygulayan kişi: ", relief=tk.GROOVE)
self.label.grid(row=1, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryPatientAdmin = tk.Entry(master, width=50)
self.entryPatientAdmin.grid(row=1, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.entryPatientAdmin.focus_force()
self.label1 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label1.grid(row=1, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label = tk.Label(master, text="Hastanın kodu: ", relief=tk.GROOVE)
self.label.grid(row=2, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryPatientID = tk.Entry(master, width=50)
self.entryPatientID.grid(row=2, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label2 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label2.grid(row=2, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label = tk.Label(master, text="Hastanın ismi: ", relief=tk.GROOVE)
self.label.grid(row=3, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryPatientName = tk.Entry(master, width=50)
self.entryPatientName.grid(row=3, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label3 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label3.grid(row=3, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label = tk.Label(master, text="Hastanın yaşı: ", relief=tk.GROOVE)
self.label.grid(row=4, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryPatientAge = tk.Entry(master, width=50)
self.entryPatientAge.grid(row=4, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label4 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label4.grid(row=4, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label = tk.Label(master, text="Hastanın cinsiyeti: ", relief=tk.GROOVE)
self.label.grid(row=5, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.buttonFemale = tk.Button(master, text="Kadın", command=self.buttonFemaleFunc, state = (tk.DISABLED if patientSex == "Female" else tk.NORMAL))
self.buttonFemale.grid(row=5, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonMale = tk.Button(master, text="Erkek", command=self.buttonMaleFunc, state = (tk.DISABLED if patientSex == "Male" else tk.NORMAL))
self.buttonMale.grid(row=5, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.label5 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label5.grid(row=5, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label = tk.Label(master, text="Hastanın toplam eğitim yılı: ", relief=tk.GROOVE)
self.label.grid(row=6, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.entryPatientEdu = tk.Entry(master, width=50)
self.entryPatientEdu.grid(row=6, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label6 = tk.Label(master, text="*", relief=tk.GROOVE)
self.label6.grid(row=6, column=3, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label7 = tk.Label(master, text="Verilerin kaydedileceği yer \n(Seçeneklerden değiştirebilirsiniz.): ", relief=tk.GROOVE)
self.label7.grid(row=7, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=1)
self.label7a = tk.Label(master, text=(settings("excel_path") + settings("excel_name")), relief=tk.GROOVE)
self.label7a.grid(row=7, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=3)
#informs user of the designated data location before proceeding
self.buttonSave = tk.Button(master, text="Kaydet", command=self.saveFunc)
self.buttonSave.grid(row=8, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonAbort = tk.Button(master, text="İptal", command=self.abortFunc)
self.buttonAbort.grid(row=8, column=2, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
def pressEnter(self, event):
try:
root.focus_get().invoke()
except:
self.saveFunc()
pass
def buttonFemaleFunc(self):
self.buttonFemale.config(state= tk.DISABLED)
self.buttonMale.config(state= tk.NORMAL)
def buttonMaleFunc(self):
self.buttonFemale.config(state= tk.NORMAL)
self.buttonMale.config(state= tk.DISABLED)
def saveFunc(self):
patientAdmin = self.entryPatientAdmin.get()
patientID = self.entryPatientID.get()
patientName = self.entryPatientName.get()
patientAge = self.entryPatientAge.get()
patientEdu = self.entryPatientEdu.get()
inputError = False
if not checkGuiInputString(patientAdmin):
self.label1.config(text = "Hata! Lütfen harf, sayı, '-', '_', '(' ve ')' dışında giriş yapmayınız.", bg="red")
inputError = True
else:
self.label1.config(text = "*", bg="green")
if not checkGuiInputString(patientID):
self.label2.config(text = "Hata! Lütfen harf, sayı, '-', '_', '(' ve ')' dışında giriş yapmayınız.", bg="red")
inputError = True
else:
self.label2.config(text = "*", bg="green")
if not checkGuiInputString(patientName):
self.label3.config(text = "Hata! Lütfen harf, sayı, '-', '_', '(' ve ')' dışında giriş yapmayınız.", bg="red")
inputError = True
else:
self.label3.config(text = "*", bg="green")
if not checkGuiInputInt(patientAge):
self.label4.config(text = "Hata! Lütfen sayı dışında giriş yapmayınız.", bg="red")
inputError = True
else:
patientAge = int(patientAge)
if 150 > patientAge > 0:
self.label4.config(text = "*", bg="green")
else:
self.label4.config(text = "Hata! Lütfen geçerli bir sayı giriniz.", bg="red")
inputError = True
if str(self.buttonFemale["state"]) == "disabled" or str(self.buttonMale["state"]) == "disabled":
self.label5.config(text = "*", bg="green")
if str(self.buttonFemale["state"]) == "disabled":
patientSex = "Female"
if str(self.buttonMale["state"]) == "disabled":
patientSex = "Male"
else:
self.label5.config(text = "Hata! Lütfen bir seçim yapınız.", bg="red")
inputError = True
if not checkGuiInputInt(patientEdu):
self.label6.config(text = "Hata! Lütfen sayı dışında giriş yapmayınız.", bg="red")
inputError = True
else:
patientEdu = int(patientEdu)
if 150 > patientEdu >= 0:
self.label6.config(text = "*", bg="green")
else:
self.label6.config(text = "Hata! Lütfen geçerli bir sayı giriniz.", bg="red")
inputError = True
if inputError:
return
else:
self.on_saving(patientAdmin, patientID, patientName, patientAge, patientSex, patientEdu)
def abortFunc(self):
patientInfo.on_closing()
def on_saving(self, temppatientAdmin, temppatientID, temppatientName, temppatientAge, temppatientSex, temppatientEdu):
text_dump = ("Testi uygulayan kişi: " + temppatientAdmin + "\nHastanın kodu: " + temppatientID +
"\nHastanın ismi: " + temppatientName + "\nHastanın yaşı: " + str(temppatientAge) +
"\nHastanın cinsiyeti: " + funcLangLocal(temppatientSex) + "\nHastanın toplam eğitim yılı: " + str(temppatientEdu)+
"\nBu kaydı onaylıyor musunuz?")
if tk.messagebox.askokcancel("Çıkış", text_dump):
globals()["patientAdmin"] = temppatientAdmin
globals()["patientID"] = temppatientID
globals()["patientName"] = temppatientName
globals()["patientAge"] = temppatientAge
globals()["patientSex"] = temppatientSex
globals()["patientEdu"] = temppatientEdu
root.destroy()
def on_closing():
if tk.messagebox.askokcancel("Çıkış", "Bu kaydı iptal etmek istediğinizden emin misiniz?"):
root.destroy()
root = tk.Tk()
tk.Grid.rowconfigure(root, [0, 1, 2, 3, 4, 5, 6, 7, 8], weight=1)
tk.Grid.columnconfigure(root, [0, 1, 2, 3], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
root.protocol("WM_DELETE_WINDOW", patientInfo.on_closing)
my_gui = patientInfo(root)
root.mainloop()
def getUserDocumentsPsiPath():
try:
import ctypes.wintypes
CSIDL_PERSONAL= 5 # My Documents
SHGFP_TYPE_CURRENT= 0 # Want current, not default value
buf= ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
ctypes.windll.shell32.SHGetFolderPathW(0, CSIDL_PERSONAL, 0, SHGFP_TYPE_CURRENT, buf)
documentsPath = buf.value
except:
import os
import configparser
cwd = os.getcwd()
documentsAdressFile = cwd + "/ESSENTIALS.ini"
parser = configparser.ConfigParser()
parser.read(documentsAdressFile, encoding = 'utf-8-sig')
documentsPath = parser.get('General', "documentsAdress")
psiPath = documentsPath + "/PsiNorm/"
ensure_dir(psiPath)
return psiPath
def guiAgreeTerms():
import tkinter as tk
from tkinter import messagebox
from tkinter.scrolledtext import ScrolledText as ScrolledText
import sys
class MyFirstGUI:
def __init__(self, master):
self.master = master
master.title("Kullanım Koşulları")
text_dump = jsonLoader("info_data")["agreeTerms_data"]
self.label = ScrolledText(master, wrap = tk.WORD, width = 80, height = 30)
self.label.grid(row=0, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=4)
self.label.insert(tk.INSERT, text_dump)
self.label.config(state=tk.DISABLED)
self.label.insert(tk.END, " in ScrolledText")
self.greet_button = tk.Button(master, width = 10, height = 1, text="Evet", command=self.greet, relief=tk.GROOVE)
self.greet_button.grid(row=1, column=1, padx=10, pady=10, sticky=tk.S)
self.close_button = tk.Button(master, width = 10, height = 1, text="Hayır", command=self.areyousure, relief=tk.GROOVE)
self.close_button.grid(row=1, column=2, padx=10, pady=10, sticky=tk.S)
def greet(self):
root.destroy()
def areyousure(self):
answer = messagebox.askyesno("Uyarı!", "Programı kullanabilmek için kabul etmelisiniz. \nBir önceki ekrana dön?")
if answer:
return
else:
sys.exit()
def on_closing():
answer = messagebox.askyesno("Uyarı!", "Programı kullanabilmek için kabul etmelisiniz. \nBir önceki ekrana dön?")
if answer:
return
else:
sys.exit()
root = tk.Tk()
tk.Grid.rowconfigure(root, [0,1], weight=1)
tk.Grid.columnconfigure(root, [0,1,2,3], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
my_gui = MyFirstGUI(root)
root.protocol("WM_DELETE_WINDOW", MyFirstGUI.on_closing)
root.mainloop()
return True
def guiSimpleTextDump(gui_title, text_dump):
import tkinter as tk
from tkinter.scrolledtext import ScrolledText as ScrolledText
class MyFirstGUI:
def __init__(self, master):
self.master = master
master.title(gui_title)
root.bind("<Return>", self.pressEnter)
self.label = ScrolledText(master, wrap = tk.WORD,width = 80, height = 30)
self.label.pack(padx=10, pady=10, fill=tk.BOTH, expand=True)
self.label.insert(tk.INSERT, text_dump)
self.label.config(state=tk.DISABLED)
self.label.insert(tk.END, " in ScrolledText")
self.close_button = tk.Button(master, text="Tamam.", command=self.close)
self.close_button.pack(side=tk.BOTTOM)
self.close_button.focus_force()
def pressEnter(self, event):
try:
root.focus_get().invoke()
except:
pass
def close(self):
root.destroy()
root = tk.Tk()
my_gui = MyFirstGUI(root)
root.mainloop()
def guiPatientNotes(gui_title, text_dump):
import tkinter as tk
from tkinter.scrolledtext import ScrolledText as ScrolledText
class patientNoteGUI:
def __init__(self, master):
self.master = master
master.title(gui_title)
self.noteBox = ScrolledText(master, wrap = tk.WORD,width = 80, height = 30)
self.noteBox.grid(row=0, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=4)
self.noteBox.insert(tk.INSERT, text_dump)
self.noteBox.focus_force()
self.noteBox.bind("<Key>", self.resetSaveStatus)
self.save_button = tk.Button(master, height=2, width=10, text="Kaydet", command=self.save)
self.save_button.grid(row=1, column=1, padx=5, pady=5, sticky=tk.S)
self.close_button = tk.Button(master, height=2, width=10, text="Çıkış", command=self.close)
self.close_button.grid(row=1, column=2, padx=5, pady=5, sticky=tk.S)
self.saveStatus = tk.Label(master, height=1, width=40, text="")
self.saveStatus.grid(row=2, column=1, padx=5, pady=5, sticky=tk.S, columnspan=2)
def resetSaveStatus(self, event):
self.saveStatus.config(text="")
def save(self):
globals()["patientNotes"] = self.noteBox.get("1.0", tk.END)
self.saveStatus.config(text="Test kaydedildi.")
def close(self):
tempPatientNotes = self.noteBox.get("1.0", tk.END)
if tempPatientNotes != patientNotes:
if tk.messagebox.askokcancel("Çıkış", "Değişiklikleri kaydetmeden çıkmak istediğinize emin misiniz?"):
root.destroy()
else:
return
else:
root.destroy()
root = tk.Tk()
tk.Grid.rowconfigure(root, [0,1,2], weight=1)
tk.Grid.columnconfigure(root, [0,1,2,3], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
my_gui = patientNoteGUI(root)
root.mainloop()
def guiSimplePopup(gui_title, text_dump):
import tkinter as tk
class MyFirstGUI:
def __init__(self, master):
self.master = master
master.title(gui_title)
self.label = tk.Label(master, text=text_dump)
self.label.grid(row=1, column=1, padx=10, pady=10, sticky=tk.N)
self.greet_button = tk.Button(master, text="Tamam", command=self.close)
self.greet_button.grid(row=2, column=1, padx=10, pady=10, sticky=tk.S)
def close(self):
root.destroy()
root = tk.Tk()
my_gui = MyFirstGUI(root)
root.mainloop()
def guiFAQ():
text_dump = jsonLoader("info_data")["FAQ_data"]
gui_title = "Sık Sorulan Sorular"
guiSimpleTextDump(gui_title, text_dump)
def guiAbout():
text_dump = jsonLoader("info_data")["about_data"]
gui_title = "PsiNorm Hakkında"
guiSimpleTextDump(gui_title, text_dump)
def guiReferences():
text_dump = jsonLoader("info_data")["references_data"]
gui_title = "Kaynakça"
guiSimpleTextDump(gui_title, text_dump)
def guiStartupMenu():
resetGlobals()
import tkinter as tk
from tkinter import messagebox
import sys
titleText = " PsiNorm Persentil Hesaplayıcı - 1.9.2"
titleSubText= """
Copyright (C) 2017 Bilal Bahadır Akbulut & Yavuz Ayhan
Bu programın KESİNLİKLE HİÇBİR TEMİNATI YOKTUR; ayrıntılar için programın içinde bulunduğu klasördeki lisans dosyalarına başvurunuz.
Bu bir özgür yazılımdır ve bazı koşullar altında yeniden dağıtmakta serbestsiniz; ayrıntılar için programın içinde bulunduğu klasördeki lisans dosyalarına başvurunuz.
"""
titleWarning = "HESAPLAMALAR BU EKRANIN YANINDA AÇILAN KONSOLDAN YAPILMAKTADIR, LÜTFEN KAPATMAYINIZ."
class startupGUI:
def __init__(self, master):
self.master = master
master.title("PsiNorm Persentil Hesaplayıcı")
root.bind("<Return>", self.pressEnter)
try:
psiNormIcon = tk.PhotoImage(file = "psiNormIcon.gif")
self.label = tk.Label(master,image=psiNormIcon)
self.label.image = psiNormIcon
self.label.grid(row=0, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=6)
except:
print("Non-kritik hata!: PsiNorm amblemi bulunamadı, bir takım menüler eksik veya bozuk görünebilir.")
pass
self.label = tk.Label(master, text=titleText, bg="white", relief=tk.GROOVE, font=(None, 16))
self.label.grid(row=1, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=6)
self.label = tk.Label(master, text=titleSubText, bg="white", relief=tk.GROOVE, font=(None, 10))
self.label.grid(row=2, column=0, padx=5, pady=5, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=6)
self.label = tk.Label(master, text=titleWarning, bg="white", relief=tk.GROOVE, font=(None, 12))
self.label.grid(row=3, column=0, padx=5, pady=5, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=6)
self.buttonStartup = tk.Button(master, text="Programı çalıştır", command=self.startup)
self.buttonStartup.grid(row=4, column=0, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonStartup.focus_force()
self.buttonguiFAQ = tk.Button(master, text="Sık Sorulan Sorular", command=self.guiFAQ)
self.buttonguiFAQ.grid(row=4, column=1, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonguiAbout = tk.Button(master, text="Hakkında", command=self.guiAbout)
self.buttonguiAbout.grid(row=4, column=2, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonguiReferences = tk.Button(master, text="Kaynakça", command=self.guiReferences)
self.buttonguiReferences.grid(row=4, column=3, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonMenuSettings = tk.Button(master, text="Ayarlar", command=self.menuSettings)
self.buttonMenuSettings.grid(row=4, column=4, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.buttonProgramExit = tk.Button(master, text="Çıkış Yap", command=self.programExit)
self.buttonProgramExit.grid(row=4, column=5, padx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
def pressEnter(self, event):
try:
root.focus_get().invoke()
except:
pass
def guiFAQ(self):
guiFAQ()
def guiAbout(self):
guiAbout()
def guiReferences(self):
guiReferences()
def menuSettings(self):
guiSettings()
def programExit(self):
startupGUI.on_closing()
def on_closing():
if messagebox.askokcancel("Çıkış", "Programı kapatmak istediğinizden emin misiniz?"):
sys.exit()
def startup(self):
root.destroy()
root = tk.Tk()
tk.Grid.rowconfigure(root, [0,1,2,3,4], weight=1)
tk.Grid.columnconfigure(root, [0,1,2,3,4,5], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
my_gui = startupGUI(root)
root.protocol("WM_DELETE_WINDOW", startupGUI.on_closing)
root.mainloop()
def menuAutoCreate(menuDict):
"""
Returns the template for the guiTestChoose.
doneTests = Dict formatting must be done before printing.
menuDict =
{"1":
{"testDataDict": "testDataDict1",
"testName": "testName1",
"testGroupName":"testGroupName1"}
}
"""
testGroupDict = {}
for testNum in menuDict.keys():
try:
testGroupDict[menuDict[testNum]["testGroupName"]].append(testNum)
except:
testGroupDict[menuDict[testNum]["testGroupName"]] = [testNum]
#Groups the tests under the group names
decorator = """|>"""
for i in range(62):
decorator += "="
decorator += "<|>"
for i in range(63):
decorator += "="
decorator += "<|\n"
textDump = """"""
textDump += decorator
from natsort import natsorted as nt
testGroupNamesList = nt(testGroupDict.keys(), key=lambda y: y.lower())
#Naturally sorts group names so they look orderly
i = 0
while i < len(testGroupNamesList):
howManyLinesEven = 0
evenList = []
howManyLinesOdd = 0
oddList = []
testGroupNameEven = testGroupNamesList[i]
textDump += "| {:54} |".format(testGroupNameEven)
howManyLinesEven = len(testGroupDict[testGroupNameEven])
evenList = nt(testGroupDict[testGroupNameEven], key=lambda y: y.lower())
#If it's an even number, it puts the menu template on the left side of the screen
if i != len(testGroupNamesList)-1:
testGroupNameOdd = testGroupNamesList[i+1]
textDump += " {:55} |".format(testGroupNameOdd) + "\n"
howManyLinesOdd = len(testGroupDict[testGroupNameOdd])
oddList = nt(testGroupDict[testGroupNameOdd], key=lambda y: y.lower())
#If it's odd, on the right side.
if i == len(testGroupNamesList)-1:
textDump += "{:56} |".format("") + "\n"
#Ensures everything is correctly whitespaced
howManyLines = max(howManyLinesEven, howManyLinesOdd)
#Checks how many lines there are, so if a group has less tests, it will have extra whitespaces
for line in range(howManyLines):
if line < howManyLinesEven:
data = {"testNum": evenList[line], "testName": menuDict[evenList[line]]["testName"]}
textDump += "|{d[testNum]:>3}) {d[testName]:55}{{doneTests[{d[testNum]}]:^4}}|".format(d=data)
else:
textDump += "|{:64}|".format("")
if line < howManyLinesOdd:
data = {"testNum": oddList[line], "testName": menuDict[oddList[line]]["testName"]}
textDump += "{d[testNum]:>3}) {d[testName]:56}{{doneTests[{d[testNum]}]:^4}}|".format(d=data) + "\n"
else:
textDump += "{:65}|".format("") + "\n"
#Automatically creates a menu
textDump += decorator
i += 2
return textDump
def guiTestChoose(title, menuDict, textDump):
import tkinter as tk
from tkinter.scrolledtext import ScrolledText as ScrolledText
from tkinter import messagebox
import sys
class testChooseGUI:
def __init__(self, master, title):
self.master = master
master.title(title)
root.bind("<Return>", self.pressEnter)
root.protocol("WM_DELETE_WINDOW", self.close)
self.label = ScrolledText(master, wrap = tk.WORD,width = 80, height = 30)
self.label.grid(row=0, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label.insert(tk.INSERT, textDump)
self.label.config(state=tk.DISABLED)
self.label.insert(tk.END, " in ScrolledText")
self.status = tk.Label(master, text="", relief=tk.GROOVE)
self.status.grid(row=1, column=0, sticky=tk.N+tk.S+tk.E+tk.W, columnspan=2)
self.label = tk.Label(master, text="Yapılacak Test No (Bir sayı girip ENTER tuşuna basınız.): ", relief=tk.GROOVE)
self.label.grid(row=2, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.entryUserInput = tk.Entry(master)
self.entryUserInput.bind("<Key>", self.resetStatus)
self.entryUserInput.focus_force()
self.entryUserInput.grid(row=2, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.patientNotes = tk.Button(master, text="Hasta Notları", command=self.getPatientNotes)
self.patientNotes.grid(row=3, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.patientInfoForms = tk.Button(master, text="Hasta Veri Formları", command=self.getPatientInfoForms)
self.patientInfoForms.grid(row=3, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.save_button = tk.Button(master, text="Kaydet ve Çık", command=self.save)
self.save_button.grid(row=4, column=0, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
self.close_button = tk.Button(master, text="Kaydetmeden Çıkış", command=self.close)
self.close_button.grid(row=4, column=1, ipadx=10, pady=10, sticky=tk.N+tk.S+tk.E+tk.W)
def resetStatus(self, event):
self.status.config(text="")
def pressEnter(self, event):
try:
if root.focus_get() == self.entryUserInput:
self.entry()
else:
root.focus_get().invoke()
except:
self.status.config(text="Lütfen uygun bir seçim yapınız.")
def getPatientNotes(self):
globals()["whatToDo"] = "getPatientNotes"
root.destroy()
def getPatientInfoForms(self):
globals()["whatToDo"] = "getPatientInfoForms"
root.destroy()
def entry(self):
userInput = self.entryUserInput.get()
if checkGuiInputInt(userInput):
if str(userInput) in menuDict.keys():
globals()["whatToDo"] = "doTest"
globals()["testNumToDo"] = userInput
root.destroy()
else:
self.status.config(text="Lütfen üstteki listede belirtilen sayılardan birini seçiniz.")
else:
self.status.config(text="Uygunsuz test numarası, lütfen tekrar deneyiniz.")
def save(self):
text = "Verileri kaydetip çıkış yapılacak, emin misiniz?"
answer = messagebox.askyesno("Uyarı!", text)
if answer:
globals()["whatToDo"] = "saveProgram"
root.destroy()
else:
return
def close(self):
text = "KAYDETMEDEN çıkılacak, emin misiniz?"
answer = messagebox.askyesno("Uyarı!", text)
if answer:
globals()["whatToDo"] = "exitPatient"
root.destroy()
else:
return
root = tk.Tk()
tk.Grid.rowconfigure(root, [0, 1, 2, 3, 4], weight=1)
tk.Grid.columnconfigure(root, [0, 1], weight=1)
root.config(borderwidth=10, relief=tk.GROOVE)
root.state('zoomed')
my_gui = testChooseGUI(root, title)
root.mainloop()
def guiTest(testDataDict):
import tkinter as tk
from tkinter import messagebox as messagebox
totalParaNum = int(testDataDict["paraNum"])
paraTypeDict = testDataDict["paraTypeDict"]
testName = testDataDict["testName"]
globals()["resultDict"] = None
class testGUI:
def __init__(self, master):
self.master = master
master.title(testName)
root.bind("<Return>", self.pressEnter)
root.bind("<Key>", self.autoCalculate)
self.entriesList = []
self.entriesSanity = []
for paraNum in range(totalParaNum):
# create left side info labels
tk.Label(text=testDataDict[str(paraNum)]).grid(row=paraNum, column=0, padx=1, pady=1)
# create entries list
self.entriesList.append(tk.Entry(width=40))
# grid layout the entries
self.entriesList[paraNum].grid(row=paraNum, column=1, padx=1, pady=1)
if str(paraNum) in testDataDict["mathOper"].keys():
self.entriesList[paraNum].insert(tk.END, "Otomatik hesaplanır.")
self.entriesList[paraNum].config(state=tk.DISABLED)
self.entriesSanity.append(tk.Label(text = "*", bg='grey', width=40))
self.entriesSanity[paraNum].grid(row=paraNum, column=2, padx=1, pady=1)
self.entriesList[0].focus_force()
self.status = tk.Label(master, height=1, width=120, text="")
self.status.grid(row=totalParaNum, column=0, padx=5, pady=5, sticky=tk.S, columnspan=3)
self.save_button = tk.Button(master, height=2, width=10, text="Kaydet ve Çık", state=tk.DISABLED, command=self.save)
self.save_button.grid(row=totalParaNum+1, column=1, padx=5, pady=5, sticky=tk.S)
self.save_button.bind("<Enter>", self.saveStatus)
self.save_button.bind("<Leave>", self.resetStatus)