def jump(event):
    while True:
        canvas.move("Ball", 0, -10)
        game.update()
        time.sleep(0.01)
game.bind("<space>", jump)
It just moves when I press space, but I want it to move all the time when I only click space once?
def jump(event):
    while True:
        canvas.move("Ball", 0, -10)
        game.update()
        time.sleep(0.01)
game.bind("<space>", jump)
It just moves when I press space, but I want it to move all the time when I only click space once?