Browse Source

Datum geaendert

Kristin 7 years ago
parent
commit
acca14d675
1 changed files with 11 additions and 7 deletions
  1. 11 7
      pingpong.py

+ 11 - 7
pingpong.py

@@ -1,6 +1,6 @@
1 1
 #Programmierung 2 - Ping Pong Spiel
2 2
 # Willi Schlegel, Francine Theil, Kristin Weber
3
-# letzte Aenderung: 19.07.2017
3
+# letzte Aenderung: 20.07.2017
4 4
 
5 5
 
6 6
 #-----------------------------------------------------------------
@@ -109,12 +109,12 @@ ball = Ball(canvas, 'white', 25, paddle)
109 109
 
110 110
 
111 111
 
112
-def button_action():
113
-    anweisungs_label.config(text=" ")
114
-
115 112
 exit_button = Button(tk, text="Spiel starten", command=tk.quit)
116 113
 exit_button.pack()
117
-# tk.mainloop()
114
+tk.mainloop()
115
+
116
+def button_action():
117
+    anweisungs_label.config()
118 118
 
119 119
 
120 120
 #--------------------------------------------------------------------------
@@ -138,5 +138,9 @@ while ball.hit_bottom == True:
138 138
     tk.update()
139 139
     time.sleep(0.01)
140 140
 
141
-#    button_action()
142
-# tk.mainloop()
141
+#button_action()
142
+#tk.mainloop()
143
+
144
+if __name__ == "__main__":
145
+    app = Ball()
146
+    app.mainloop()