|
|
@@ -240,7 +240,8 @@ def simulate(): |
|
|
|
|
|
|
|
T = tk.Text(SB.frame, height=1, width=15)
|
|
|
|
T.grid(columnspan=5)
|
|
|
|
T.insert('current', "Deutranopie:")
|
|
|
|
print_string = "Deutranop(" + str(round(d.sim_faktor*100)) + "%)"
|
|
|
|
T.insert('current', print_string)
|
|
|
|
|
|
|
|
conv_SimulationPic_deut = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_deut))
|
|
|
|
sim_pic_deut = tk.Label(SB.frame, image=conv_SimulationPic_deut)
|
|
|
@@ -252,7 +253,8 @@ def simulate(): |
|
|
|
|
|
|
|
T = tk.Text(SB.frame, height=1, width=15)
|
|
|
|
T.grid(columnspan=5)
|
|
|
|
T.insert('current', "Tritanopie:")
|
|
|
|
print_string = "Tritanop(" + str(round(t.sim_faktor * 100)) + "%)"
|
|
|
|
T.insert('current', print_string)
|
|
|
|
|
|
|
|
conv_SimulationPic_tri = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_tri))
|
|
|
|
sim_pic_tri = tk.Label(SB.frame, image=conv_SimulationPic_tri)
|
|
|
@@ -264,7 +266,8 @@ def simulate(): |
|
|
|
|
|
|
|
T = tk.Text(SB.frame, height=1, width=15)
|
|
|
|
T.grid(columnspan=5)
|
|
|
|
T.insert('current', "Protanopie:")
|
|
|
|
print_string = "Protanop(" + str(round(p.sim_faktor * 100)) + "%)"
|
|
|
|
T.insert('current', print_string)
|
|
|
|
|
|
|
|
conv_SimulationPic_pro = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_pro))
|
|
|
|
sim_pic_pro = tk.Label(SB.frame, image=conv_SimulationPic_pro)
|