Author Ivan.Pozdeev
Recipients Ivan.Pozdeev, serhiy.storchaka, terry.reedy
Date 2018-05-06.21:20:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525641610.7.0.682650639539.issue33412@psf.upfronthosting.co.za>
In-reply-to
Content
> Without thread support, event generation from multiple threads fails immediately.

This ticket is for threaded Tcl only, so this is off topic.

In nonthreaded Tcl, this script crashes rather than freezes, for an entire ly different reason that I already explained in https://bugs.python.org/issue33257 .

This ticket is solved if you ask me.
The only remaining matter is that there's no documentation:

* on Tkinter threading model: https://docs.python.org/3/library/tk.html claims full thread safety which is untrue.
* on best practices with Tkinter: as you could see, all the more or less obvious solutions are flawed. (That includes my solution: the program doesn't terminate gracefully if you close the window by hand.)

I'm going to cover at least the first item as part of executing Guido's suggestion to "add a warning to the docs".
History
Date User Action Args
2018-05-06 21:20:10Ivan.Pozdeevsetrecipients: + Ivan.Pozdeev, terry.reedy, serhiy.storchaka
2018-05-06 21:20:10Ivan.Pozdeevsetmessageid: <1525641610.7.0.682650639539.issue33412@psf.upfronthosting.co.za>
2018-05-06 21:20:10Ivan.Pozdeevlinkissue33412 messages
2018-05-06 21:20:10Ivan.Pozdeevcreate