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 cheryl.sabella
Recipients cheryl.sabella, serhiy.storchaka, terry.reedy
Date 2018-02-14.16:39:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518626366.89.0.467229070634.issue32839@psf.upfronthosting.co.za>
In-reply-to
Content
>>> It is internal, it was not exposed to Tkinter users before, and the API for restoring the original Python callable is private.

I thought `bind(sequence)` also returned these internal Tcl function names?  For example, if I do a print on the set_breakpoint_here text widget in IDLE, it prints :
if {"[140358823678376set_breakpoint_here %# %b %f %h %k %s %t %w %x %y %A %E %K %N %W %T %X %Y %D]" == "break"} break


In order for it to return the python function name, I think the `after` function would need to write to a dictionary of `name: func` where name is currently used as the Tcl function name that is registered?  Is there something in tkinter that does this now that it could be modeled from?  Since events are removed from Tcl once that are invoked, how would the dictionary be cleaned up?  Would after_info need to be polled every once in a while to clean up the dictionary or would it just exist until the object is destroyed?
History
Date User Action Args
2018-02-14 16:39:26cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy, serhiy.storchaka
2018-02-14 16:39:26cheryl.sabellasetmessageid: <1518626366.89.0.467229070634.issue32839@psf.upfronthosting.co.za>
2018-02-14 16:39:26cheryl.sabellalinkissue32839 messages
2018-02-14 16:39:26cheryl.sabellacreate