[issue26085] Tkinter spoils the input text

Serhiy Storchaka report at bugs.python.org
Sat Jan 16 06:23:56 EST 2016


Serhiy Storchaka added the comment:

I can't reproduce the result with tem.py. If change binding to <Control-t> and comment out the line "return 'break'" in the callback I can reproduce it.

This is expected and documented (but only in bind() docstring) behavior. If the callback returns 'break', no other functions (including standard handlers) will be invoked for the event. Otherwise the standard handler for <Control-t> is invoked and it swaps two characters as Terry said.

If doesn't consider this issue as the documentation issue, it should be closed as not a bug.

Here is Terry's example translated to pure Tcl.

----------
Added file: http://bugs.python.org/file41632/tem.tcl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26085>
_______________________________________


More information about the Python-bugs-list mailing list