@@ -118,17 +118,17 @@ def close_window(self):
118
118
@Decorators
119
119
def rad_button (self ):
120
120
x = 0
121
- for i , food_item in enumerate (self .funcs ):
121
+ for i , food_item in enumerate (self .funcs ):
122
122
self .funcs_dict [food_item ] = Checkbutton (text = food_item , bg = "#DDCE84" )
123
123
124
124
# Create a new instance of IntVar() for each checkbutton
125
125
self .funcs_dict [food_item ].var = IntVar ()
126
126
127
127
# Set the variable parameter of the checkbutton
128
- self .funcs_dict [food_item ][' variable' ] = self .funcs_dict [food_item ].var
128
+ self .funcs_dict [food_item ][" variable" ] = self .funcs_dict [food_item ].var
129
129
130
130
# Arrange the checkbutton in the window
131
- self .funcs_dict [food_item ].pack (anchor = 'w' )
131
+ self .funcs_dict [food_item ].pack (anchor = "w" )
132
132
Canvas (self .window , height = 1 , width = 900 , bg = "yellow" ).pack ()
133
133
Label (
134
134
self .window ,
@@ -323,19 +323,18 @@ def show2(self, patient_entry):
323
323
f"{ table .get_string ()} "
324
324
)
325
325
326
-
327
326
def show333 (self ):
328
327
for cb in self .funcs_dict .values ():
329
328
if cb .var .get ():
330
- print (cb [' text' ])
329
+ print (cb [" text" ])
331
330
332
331
@Decorators
333
332
def show (self , pokaz_entry ):
334
333
for cb in self .funcs_dict .values ():
335
334
if cb .var .get ():
336
335
if self .flag :
337
336
Prog .pokaz_entry = pokaz_entry .get ()
338
- if cb [' text' ] == "Середнє арифметичне" :
337
+ if cb [" text" ] == "Середнє арифметичне" :
339
338
res = Prog .pokaz_entry .split ("," )
340
339
for i in res :
341
340
self .show_histo (
@@ -368,7 +367,7 @@ def show(self, pokaz_entry):
368
367
value = value ,
369
368
)
370
369
Prog .db .get_rand_excel ()
371
- elif cb [' text' ] == "Мінімальне значення" :
370
+ elif cb [" text" ] == "Мінімальне значення" :
372
371
res = Prog .pokaz_entry .split ("," )
373
372
for i in res :
374
373
self .show_histo (
@@ -400,7 +399,7 @@ def show(self, pokaz_entry):
400
399
),
401
400
)
402
401
Prog .db .get_rand_excel ()
403
- elif cb [' text' ] == "Максимальне значення" :
402
+ elif cb [" text" ] == "Максимальне значення" :
404
403
res = Prog .pokaz_entry .split ("," )
405
404
for i in res :
406
405
self .show_histo (
@@ -432,10 +431,7 @@ def show(self, pokaz_entry):
432
431
),
433
432
)
434
433
Prog .db .get_rand_excel ()
435
- elif (
436
- cb ['text' ]
437
- == "Середньоквадратичне відхилення по вибірці"
438
- ):
434
+ elif cb ["text" ] == "Середньоквадратичне відхилення по вибірці" :
439
435
res = Prog .pokaz_entry .split ("," )
440
436
for i in res :
441
437
self .show_histo (
@@ -467,7 +463,7 @@ def show(self, pokaz_entry):
467
463
),
468
464
)
469
465
Prog .db .get_rand_excel ()
470
- elif cb [' text' ] == "Коефіцієнт варіації" :
466
+ elif cb [" text" ] == "Коефіцієнт варіації" :
471
467
res = Prog .pokaz_entry .split ("," )
472
468
for i in res :
473
469
self .show_histo (
@@ -499,7 +495,7 @@ def show(self, pokaz_entry):
499
495
),
500
496
)
501
497
Prog .db .get_rand_excel ()
502
- elif cb [' text' ] == "Помилка середнього" :
498
+ elif cb [" text" ] == "Помилка середнього" :
503
499
res = Prog .pokaz_entry .split ("," )
504
500
for i in res :
505
501
self .show_histo (
@@ -531,7 +527,7 @@ def show(self, pokaz_entry):
531
527
),
532
528
)
533
529
Prog .db .get_rand_excel ()
534
- elif cb [' text' ] == "Коваріація" :
530
+ elif cb [" text" ] == "Коваріація" :
535
531
val = Prog .pokaz_entry .split ("," )
536
532
res = str (val [0 ]) + " " + str (val [1 ])
537
533
self .cor_graph (
@@ -575,9 +571,7 @@ def show(self, pokaz_entry):
575
571
),
576
572
)
577
573
Prog .db .get_rand2_excel ()
578
- elif (
579
- cb ['text' ] == "Коефіцієнт кореляції Пірсона"
580
- ):
574
+ elif cb ["text" ] == "Коефіцієнт кореляції Пірсона" :
581
575
val = Prog .pokaz_entry .split ("," )
582
576
res = str (val [0 ]) + " " + str (val [1 ])
583
577
self .cor_graph (
@@ -621,7 +615,7 @@ def show(self, pokaz_entry):
621
615
),
622
616
)
623
617
Prog .db .get_rand2_excel ()
624
- elif cb [' text' ] == "Т-критерий Стюдента" :
618
+ elif cb [" text" ] == "Т-критерий Стюдента" :
625
619
val = Prog .pokaz_entry .split ("," )
626
620
res = str (val [0 ]) + " " + str (val [1 ])
627
621
self .cor_graph (
@@ -666,7 +660,7 @@ def show(self, pokaz_entry):
666
660
)
667
661
Prog .db .get_rand2_excel ()
668
662
else :
669
- if cb [' text' ] == "Середнє арифметичне" :
663
+ if cb [" text" ] == "Середнє арифметичне" :
670
664
res = pokaz_entry .get ().split ("," )
671
665
for i in res :
672
666
self .show_histo (
@@ -677,7 +671,7 @@ def show(self, pokaz_entry):
677
671
i .strip (),
678
672
average (self .db .get_list_all (self .bd_dict [i .strip ()])),
679
673
)
680
- elif cb [' text' ] == "Мінімальне значення" :
674
+ elif cb [" text" ] == "Мінімальне значення" :
681
675
res = pokaz_entry .get ().split ("," )
682
676
for i in res :
683
677
self .show_histo (
@@ -688,7 +682,7 @@ def show(self, pokaz_entry):
688
682
i .strip (),
689
683
minimal (self .db .get_list_all (self .bd_dict [i .strip ()])),
690
684
)
691
- elif cb [' text' ] == "Максимальне значення" :
685
+ elif cb [" text" ] == "Максимальне значення" :
692
686
res = pokaz_entry .get ().split ("," )
693
687
for i in res :
694
688
self .show_histo (
@@ -699,7 +693,7 @@ def show(self, pokaz_entry):
699
693
i .strip (),
700
694
maximal (self .db .get_list_all (self .bd_dict [i .strip ()])),
701
695
)
702
- elif cb [' text' ] == "Середньоквадратичне відхилення по вибірці" :
696
+ elif cb [" text" ] == "Середньоквадратичне відхилення по вибірці" :
703
697
res = pokaz_entry .get ().split ("," )
704
698
for i in res :
705
699
self .show_histo (
@@ -708,9 +702,11 @@ def show(self, pokaz_entry):
708
702
self .db .insert_deviation (
709
703
len (self .db .get_list_all (self .bd_dict [i .strip ()])),
710
704
i .strip (),
711
- deviation (self .db .get_list_all (self .bd_dict [i .strip ()])),
705
+ deviation (
706
+ self .db .get_list_all (self .bd_dict [i .strip ()])
707
+ ),
712
708
)
713
- elif cb [' text' ] == "Коефіцієнт варіації" :
709
+ elif cb [" text" ] == "Коефіцієнт варіації" :
714
710
res = pokaz_entry .get ().split ("," )
715
711
for i in res :
716
712
self .show_histo (
@@ -719,9 +715,11 @@ def show(self, pokaz_entry):
719
715
self .db .insert_variation (
720
716
len (self .db .get_list_all (self .bd_dict [i .strip ()])),
721
717
i .strip (),
722
- variation (self .db .get_list_all (self .bd_dict [i .strip ()])),
718
+ variation (
719
+ self .db .get_list_all (self .bd_dict [i .strip ()])
720
+ ),
723
721
)
724
- elif cb [' text' ] == "Помилка середнього" :
722
+ elif cb [" text" ] == "Помилка середнього" :
725
723
res = pokaz_entry .get ().split ("," )
726
724
for i in res :
727
725
self .show_histo (
@@ -730,9 +728,11 @@ def show(self, pokaz_entry):
730
728
self .db .insert_error (
731
729
len (self .db .get_list_all (self .bd_dict [i .strip ()])),
732
730
i .strip (),
733
- std_error (self .db .get_list_all (self .bd_dict [i .strip ()])),
731
+ std_error (
732
+ self .db .get_list_all (self .bd_dict [i .strip ()])
733
+ ),
734
734
)
735
- elif cb [' text' ] == "Коваріація" :
735
+ elif cb [" text" ] == "Коваріація" :
736
736
val = pokaz_entry .get ().split ("," )
737
737
res = str (val [0 ]) + " " + str (val [1 ])
738
738
self .cor_graph (
@@ -748,7 +748,7 @@ def show(self, pokaz_entry):
748
748
self .db .get_list_all (self .bd_dict [val [1 ].strip ()]),
749
749
),
750
750
)
751
- elif cb [' text' ] == "Коефіцієнт кореляції Пірсона" :
751
+ elif cb [" text" ] == "Коефіцієнт кореляції Пірсона" :
752
752
val = pokaz_entry .get ().split ("," )
753
753
res = str (val [0 ]) + " " + str (val [1 ])
754
754
self .cor_graph (
@@ -764,7 +764,7 @@ def show(self, pokaz_entry):
764
764
self .db .get_list_all (self .bd_dict [val [1 ].strip ()]),
765
765
),
766
766
)
767
- elif cb [' text' ] == "Т-критерий Стюдента" :
767
+ elif cb [" text" ] == "Т-критерий Стюдента" :
768
768
val = pokaz_entry .get ().split ("," )
769
769
res = str (val [0 ]) + " " + str (val [1 ])
770
770
self .cor_graph (
@@ -820,4 +820,4 @@ def start(self):
820
820
Prog .window .mainloop ()
821
821
822
822
823
- p = Prog ()
823
+ p = Prog ()
0 commit comments