After a bind a method to an event of a Tkinter element is there a way to get the method back?
>>> root = Tkinter.Tk() >>> frame = Tkinter.Frame(root, width=100, height=100) >>> frame.bind('<Button-1>', lambda e: pprint('Click')) # function needed >>> frame.pack() >>> bound_event_method = frame.???
The associated call to do that for the tk C API would be Get_GetCommandInfo which
However this function is not used anywhere in _tkinter.c which is the binding for tk used by python trough Tkinter.py.
Therefore it is impossible to get the bound function out of tkinter. You need to remember that function yourself.