Cheryl Sabella <chek...@gmail.com> added the comment:

>>> 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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32839>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to