""" Simple animation example with Python and TKinter """ def hyppa(event): #canvas.move(ovaal, event.x, event.y) canvas.coords(ovaal, event.x, event.y, event.x+10, event.y+10) import time from tkinter import * window = Tk() canvas = Canvas(window, width=400, height=300, bg='white') canvas.pack() x = 0 y = 10 r = 30 vx = 10.0 vy = 5.0 ovaal=canvas.create_oval(x, y, x+r, y+r, fill="blue") #canvas.bind("", hyppa) canvas.tag_bind(ovaal, "", hyppa) window.mainloop()