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 akuchling
Recipients
Date 2002-03-22.16:44:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=11375

I don't think this is actually a bug, and the return 
value of tag_bind really is useless.  tag_bind(t,s) 
returns the command bound to that sequence.  
Tkinter.py supports a feature where a binding can 
return the string "break" if no further bound function 
should be invoked, so when adding a binding, Python has 
to synthesize the 'if {123456foo ...}' Tcl command, and 
that's what tag_bind returns.

I think your example code should be written as:

bind_id = c.tag_bind(tId, '<Button-1>', foo)

And then refer to bind_id when you need to delete the 
binding.  

Was your example usage of tag_bind() described in some 
documentation, or in a demo script somewhere?  
Maybe that script or documentation needs to be fixed.
History
Date User Action Args
2007-08-23 13:59:52adminlinkissue531262 messages
2007-08-23 13:59:52admincreate