multi-thread problem of python/Tkiner on windows

Eric Brunel eric.brunel at pragmadev.N0SP4M.com
Wed Oct 15 12:36:07 EDT 2003


York wrote:
> Hi, everyone,
> 
> I just want to know whether python/Tkinter support multi-thread or not. As 
> my experience, my GUI (based on Tkinter) program can run in multi-thread 
> style on Linux, but on windows, it has to be turn to non-thread style, 
> otherwise it will crash at once. 

 From my experience, Tkinter works with multi-thread on Windows, as long as you 
keep calls to Tkinter in the thread where it was initialized. We use the method 
event_generate on Tkinter widgets and Queues to make other threads communicate 
with the thread where Tkinter runs, and it works without (too much...) problems.

Can you give you precisions on what are you doing exactly?

HTH
-- 
- Eric Brunel <eric dot brunel at pragmadev dot com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com





More information about the Python-list mailing list