Need advice for Tkinter freezing problem (python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need advice for Tkinter freezing problem (python)

My tkinter GUI was freezing so I decided to use threading but the problem is matplotlib is thread incompatible so I can't use matplotlib in thread. So should I use multiprocessing? Will it prevent freezing GUI and matplotlib problem?

9th Oct 2021, 2:54 PM
Gajendra Sonare
Gajendra Sonare - avatar
1 Answer
+ 1
you're application is probably uses synchronous functions which are single threated and will result in freezing and lagging , try using asynchronous approach in python; these articles may help you: https://www.infoworld.com/article/3454442/get-started-with-async-in-python.html https://medium.com/velotio-perspectives/an-introduction-to-asynchronous-programming-in-python-af0189a88bbb#:~:text=Asynchronous%20programming%20is%20a%20type
9th Oct 2021, 3:41 PM
Nima