How to use time.sleep() while running a turtle window?

Viewed 24

When I use time.sleep() in a while loop it just pauses the entire turtle window. Is there a different way to pause just inside the loop?

while Speed == True:
    time.sleep(5) # <----
    Ball.dx += 0.05
    Ball.dy += 0.05
    if Ball.dx >= 0.030 and Ball.dy >= 0.030: #Here for testing
        break
0 Answers
Related