Juliette Monsel added the comment:
I have found a workaround to unbind a single binding (inspired by
https://mail.python.org/pipermail/tkinter-discuss/2012-May/003151.html):
def unbind(widget, seq, funcid):
bindings = {x.split()[1][3:]: x for x in widget.bind(seq).splitlines() if
x.strip()}
try:
del bindings[funcid]
except KeyError:
raise tk.TclError('Binding "%s" not defined.' % funcid)
widget.bind(seq, '\n'.join(list(bindings.values())))
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com