I am making a GUI program where the user can draw on a canvas in Tkinter. What I want to do is that I want the user to be able to draw on the canvas and when the user releases the Mouse-1, the program should wait for 1 second and clear the canvas. If the user starts drawing within that 1 second, the canvas should stay as it is. 
I am able to get the user input fine. The draw function in my program is bound to B1-Motion.
I have tried things like inducing a time delay but I don't know how to check whether the user has started to draw again.
How do I check whether the user has started to draw again?
You can bind the mouse click event to a function that sets a bool to True or False, then using after to call a function after 1 second which depending on that bool clears the screen.
How to wait for some time between user inputs in tkinter?