How to get a unique id for bound methods?
Bengt Richter
bokr at oz.net
Fri Aug 19 20:52:44 EDT 2005
On Fri, 19 Aug 2005 16:33:22 -0700, "Russell E. Owen" <rowen at cesmail.net> wrote:
[...]
>
>The current issue is associated with Tkinter. I'm trying to create a tk
>callback function that calls a python "function" (any python callable
>entity).
>
>To do that, I have to create a name for tk that is unique to my python
>"function". A hash-like name would be perfect, meaning a name that is
>always the same for a particular python "function" and always different
>for a different python "function". That would save a lot of housekeeping.
>
Why do you need a name? Can you post an example snippet that shows
a callback function being used with Tkinter as you would wish?
I have a feeling there is a much simpler solution than you are imagining ;-)
Regards,
Bengt Richter
More information about the Python-list
mailing list