Anpassung des Print Befehls
Ausgabe des Bildes erfolgt nun auch mit der Stärke der Farbblindheitssimulation (von 0 bis 100%)
This commit is contained in:
parent
3b5798b143
commit
e62ea2a23e
@ -240,7 +240,8 @@ def simulate():
|
|||||||
|
|
||||||
T = tk.Text(SB.frame, height=1, width=15)
|
T = tk.Text(SB.frame, height=1, width=15)
|
||||||
T.grid(columnspan=5)
|
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))
|
conv_SimulationPic_deut = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_deut))
|
||||||
sim_pic_deut = tk.Label(SB.frame, image=conv_SimulationPic_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 = tk.Text(SB.frame, height=1, width=15)
|
||||||
T.grid(columnspan=5)
|
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))
|
conv_SimulationPic_tri = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_tri))
|
||||||
sim_pic_tri = tk.Label(SB.frame, image=conv_SimulationPic_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 = tk.Text(SB.frame, height=1, width=15)
|
||||||
T.grid(columnspan=5)
|
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))
|
conv_SimulationPic_pro = ImageTk.PhotoImage(image=PIL.Image.fromarray(display_array_pro))
|
||||||
sim_pic_pro = tk.Label(SB.frame, image=conv_SimulationPic_pro)
|
sim_pic_pro = tk.Label(SB.frame, image=conv_SimulationPic_pro)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user