This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients cheryl.sabella, serhiy.storchaka, terry.reedy
Date 2018-02-14.06:46:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518590768.77.0.467229070634.issue32839@psf.upfronthosting.co.za>
In-reply-to
Content
On one side, the first item of the list returned by the Tcl command `after info $id` is a name of the Tcl command generated by Tkinter. It is internal, it was not exposed to Tkinter users before, and the API for restoring the original Python callable is private.

On other side, `after info` can return not only events created by Tkinter, but events created by Tcl (either by direct execution of Tcl script, this is still can be useful with programming with Tkinter, or created by the Tcl standard library or third-party Tcl libraries). In that case a Python callable can't be returned.

This is what I was uncertain about. Maybe after_info() should return a Python callable if possible, and keep the original result otherwise? This complicates its implementation and definition.

TclError is legal and expected. In some methods it is caught, either because the method is purposed to be called at widget destroying stage, when the order of different cleanup procedures is not specified, and Tcl names can be destroyed before destroying Tkinter wrappers, or because the method was implemented differently in the past, and catching TclError is needed for backward compatibility. after_info() is not the case.
History
Date User Action Args
2018-02-14 06:46:08serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, cheryl.sabella
2018-02-14 06:46:08serhiy.storchakasetmessageid: <1518590768.77.0.467229070634.issue32839@psf.upfronthosting.co.za>
2018-02-14 06:46:08serhiy.storchakalinkissue32839 messages
2018-02-14 06:46:08serhiy.storchakacreate