Oleg Paraschenko wrote:
[snip]
In my case "Hello" works and "Quit" doesn't (GUI stays frozen).
Linux, Python 2.3.3, pygtk-0.6.9.
That's not a multithreading issue, but just the way the quit method works.
Try:
-
import time
from Tkinter import *
root
Hello John,
> Mark,
>
> I tried your code snippet with Python 2.3.4. Worked fine. Only
problem was
> that the program fell off the end and terminated before the second
thread
> could open the Tkinter window. So I added these lines at the end to
make the
> main thread wait:-
>
> from msvcrt import
> Date: Thu, 16 Dec 2004 11:59:53 GMT
> From: "John Pote" <[EMAIL PROTECTED]>
>
> "Mark English" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Is there a safe way to run tkinter in a multithreaded app
> where the mainloop runs in a background thread ?
>
>
> I tried your code
"Mark English" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Is there a safe way to run tkinter in a multithreaded app where the
mainloop runs in a background thread ?
Mark,
I tried your code snippet with Python 2.3.4. Worked fine. Only problem was
that the program fell off the
Is there a safe way to run tkinter in a multithreaded app where the
mainloop runs in a background thread ?
Here's some test code demonstrating the problem. I'm running Python2.4
under Windows 2000.
Code snip starts-
from Tkinter import *
def GetTkinterThread():
im