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 j-4321-i
Recipients j-4321-i
Date 2017-09-15.14:37:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505486249.46.0.284144838221.issue31485@psf.upfronthosting.co.za>
In-reply-to
Content
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())))
History
Date User Action Args
2017-09-15 14:37:29j-4321-isetrecipients: + j-4321-i
2017-09-15 14:37:29j-4321-isetmessageid: <1505486249.46.0.284144838221.issue31485@psf.upfronthosting.co.za>
2017-09-15 14:37:29j-4321-ilinkissue31485 messages
2017-09-15 14:37:29j-4321-icreate