|Syntactic Confectionery Delight|
Re: Do I need threading for my GUI?by BrowserUk (Patriarch)
|on Feb 18, 2008 at 14:03 UTC||Need Help??|
Forget what most of the people in this thread have said. Half of them have never used threads, and the other half have never tried their proffered solution in conjunction with Tk.
Take it from someone who has used threads in conjunction with tk. For the scenario you describe, using a thread is by far the simplest solution. Indeed, if you will post (or email to me) the code for your current solution that locks the gui when the "mainprocess" runs, I will convert it to use threads and prevent that, with 3* lines of code.
Let's see any of them offer to convert your existing code to their proffered solution?
*It may take a few more lines to ensure that you can interrupt the main process, or terminate it early, cleanly, but in most cases, only a few more.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.