Python Tkinter: Window freezing on user click during update_idletasks()
I am trying to make an app in tkinter to visualize data structures and algorithms. However, I have an issue with the way the program is updating the canvas during the visualisation process. When the visualisation process takes more than ~2 seconds, the program freezes if the user clicks on the window (not responding), and resumes when the visualisation is complete. I am sure what causes this problem, and it doesn’t arise if the user never clicks. Any ideas as to the actual problem and/or issue? The app is still in a testing phase, so it isn’t super clean, apologies for that.