CLI+GUI

Michele Simionato mis6 at pitt.edu
Mon Aug 11 09:17:35 EDT 2003


Eric Brunel <eric.brunel at pragmadev.com> wrote in message news:<bh7hs3$dtk$1 at news-reader3.wanadoo.fr>...
> 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.
> 
> HTH

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 ;)


                          Michele




More information about the Python-list mailing list