[Python-bugs-list] Tkinter: widget.bind('sequence') incorrect (PR#368)
guido@python.org
guido@python.org
Fri, 23 Jun 2000 15:45:41 -0400 (EDT)
> With Tcl/Tk, bind tag sequence returns the string which is the command.
> With Python, widget.bind('sequence') seems to return a reference to the
> command not the command.
>
> The following reproduces the problem on my machine. Try running the file
> and observe the print output. Pretty strange.
The string returned is in fact the command bound -- this is a wrapper
function. Since (typically) the argument to bind is a Python
function, not a Tcl command, a wrapper is used to pass the event data
to the Python function.
This doesn't qualify as a bug -- it's just different.
--Guido van Rossum (home page: http://www.python.org/~guido/)