Browse Source

Anpassung des Print Befehls

Ausgabe des Bildes erfolgt nun auch mit der Stärke der Farbblindheitssimulation (von 0 bis 100%)
master
Max Sponsel 4 years ago
parent
commit
e62ea2a23e
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      Code/Dyschromasie-Applikation.py

+ 6
- 3
Code/Dyschromasie-Applikation.py View File

@@ -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)

Loading…
Cancel
Save