Michele Simionato mis6 at
Mon Aug 11 15:17:35 CEST 2003

Eric Brunel <eric.brunel at> wrote in message news:<bh7hs3$dtk$1 at>...
> I don't know if this is the problem, because you didn't say exactly when the 
> script hangs, but Tkinter apparently has problems when calls to it are made 
> from a thread different from the one into which it was initialized. I'd use 
> an Event between Tkinter's thread and Cmd's thread, checking it regularly 
> with Tkinter's after method.

It hangs immediately when I start the script by clicking on its icon.
What do you mean with "I'd use an Event" ? I thought an Event object
is automatically generated when I click on a widget, or press a key,
or something. Are you saying can I can programmatically generate an
Event, faking a real mouse/key press? How so? That is something I
always wanted to know ;)


More information about the Python-list mailing list