I’m trying to develop a very basic Tkinter drawing app, but cannot find a good event to use to detect mouse movement.
Binding <B1-Motion> works, but it does not count very small movements/the beginning of the stroke.
I have also considered swapping root.mainloop for root.update and including the function inside root.update’s while loop; example:
while True:
if (mouse pressed):
drawLine()
root.update()
However, I have seen multiple people advise against the use of root.update in general.
Does anyone know if this is an appropriate use case or know of a better alternative(either to <B1-Motion> or Tkinter)?
Executec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.