Hi all, I have created a GUI using Tkinter. I have a button "GO", which when clicked calls a function (mainFunc). That function takes around 60 seconds to execute and in the mean time outputs many numbers which have to be displayed in a list in the GUI.
I have attempted the following: 1. I created a thread whose target = mainFunc, when the button is clicked. I can see the function printing stuff in terminal. But the GUI still freezes. 2. When I tried to create a thread whose target = root.mainloop(), the GUI doesn't display at all, (Python.app launches but the GUI is not displayed), *Can you please help me how to create threads exactly???* I am attaching my code along with the mail main. mainFunction() is the function that takes approx 60 seconds to execute and that should be running in parallel with GUI/ in background. Thanks in advance...
interface.py
Description: Binary data
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss