from turtle import * from time import * def abbruch(x=0, y=0): global aktiv aktiv = False leinwand = Screen() tracer(n=0) hideturtle() leinwand.onkeypress(abbruch) leinwand.onclick(abbruch) listen() aktiv = True radius = 20 veraenderung = 1 while aktiv: clear() circle(radius) update() if radius < -200 or radius > 200: veraenderung = -veraenderung radius = radius + veraenderung sleep(0.01)