Browse Source

Variante mit visueller Veranschaulichung des Notenspiegels

Vinzent Reiß 7 years ago
parent
commit
8251298d8c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ToolV00.py

+ 4 - 1
ToolV00.py

@@ -206,7 +206,10 @@ def Notenspiegel():
206 206
 def NotenspiegelAusgabe():
207 207
 	root = Tk()
208 208
 	for i in range(41):
209
-		Label(root, text = "a" * int((Notenverteilung[i]/len(Studenten))*128), background = "red").grid(row = i, column = 0)
209
+		tmp = 1.0 + float(i)/10.0
210
+		Label(root, text = tmp).grid(row = i, column = 0)
211
+		Label(root, width =  int(float(Notenverteilung[i])/float(len(Studenten))*128), background = "red").grid(row = i, column = 1, sticky = W, pady = 4)
212
+	Button(root, text = "Beenden", command = root.destroy).grid(row = 0, column = 2)
210 213
 	root.mainloop()
211 214
 
212 215
 def TextdateiErstellen():