I was using the following code to examine if Tkinter works along with multithreading. But the following code doesn\'t work (the Gui becomes unresponsive as soon as it runs).
It doesn't work because Tkinter doesn't support multithreading. Everything that interacts with a Tkinter widget needs to run in the main thread. If you want to use multithreading, put the GUI in the main thread and your other code in a worker thread, and communicate between them with a thread safe queue.