Browse Source

Datum geaendert und Aktualisierung der Highscore-Liste zum Laufen gebracht

Kristin 7 years ago
parent
commit
8ba8d50308
1 changed files with 6 additions and 3 deletions
  1. 6 3
      pingpong.py

+ 6 - 3
pingpong.py

@@ -1,7 +1,7 @@
1 1
 
2 2
 # Programmierung 2 - Ping Pong Spiel
3 3
 # Willi Schlegel, Francine Theil, Kristin Weber
4
-# letzte Aenderung: 21.07.2017
4
+# letzte Aenderung: 25.07.2017
5 5
 
6 6
 
7 7
 #-----------------------------------------------------------------
@@ -153,6 +153,8 @@ def anzeige():
153 153
       hsout = hsin.write(tupel + "\n")
154 154
       hsin.close
155 155
 
156
+   def highscore():
157
+
156 158
       master = Tk()
157 159
       master.title("Highscore-Liste")
158 160
       canvas = Canvas(master, width=200, height=400, bd=2, bg='white')
@@ -168,7 +170,7 @@ def anzeige():
168 170
       label = canvas.create_text(5, 5, anchor=NW, text=ausgeben)
169 171
 
170 172
 
171
-      mainloop()
173
+#      mainloop()
172 174
 
173 175
 
174 176
    master = Tk()
@@ -176,7 +178,8 @@ def anzeige():
176 178
    e1 = Entry(master)
177 179
    e1.grid(row=0, column=1)
178 180
    Button(master, text='Ok', command=show_entry_fields).grid(row=3, column=1, sticky=W, pady=4)
179
-   Button(master, text='Zurueck', command=master.destroy).grid(row=3, column=2, sticky=W, pady=4)
181
+   Button(master, text='Zurueck', command=master.destroy).grid(row=3, column=3, sticky=W, pady=4)
182
+   Button(master, text='Highscore', command=highscore).grid(row=3, column=2, sticky=W, pady=4)
180 183
 
181 184
    mainloop()
182 185