Problems with Tkinter and threads
Eric Brunel
eric_brunel at despammed.com
Mon Jul 17 10:57:22 EDT 2006
On Mon, 17 Jul 2006 15:20:46 +0200, Claus Tondering
<claus.tondering at gmail.com> wrote:
> Eric Brunel wrote:
>> This is where the problem is: if you do just a event_generate without
>> specifying the 'when' option, the binding is fired immediately in the
>> current thread. To be sure that an event is created and that the thread
>> switch actually happens, do:
>>
>> app.event_generate("<<myevent1>>", when='tail')
>>
>> and things should work fine.
>
> Nice!
>
> Obviously, there are important things that I don't know about Tkinter.
> Unless I'm much mistaken, neither Fredrik Lundh's "An Introduction to
> Tkinter" nor John W. Shipman's "Tkinter reference: a GUI for Python"
> mentions the when='tail' option.
The ultimate documentation is unfortunately still the tcl/tk man pages.
There is an on-line version here:
http://www.tcl.tk/man/
Once you've understood how to convert the tcl syntax to Python/Tkinter,
it's always the most up-to-date source of information.
HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
More information about the Python-list
mailing list