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 glombardo
Recipients glombardo, j-4321-i, serhiy.storchaka, terry.reedy
Date 2020-01-05.18:22:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578248562.19.0.155651411235.issue31485@roundup.psfhosted.org>
In-reply-to
Content
I propose the below fix:

```
    def unbind(self, sequence, funcid=None):
        """Unbind for this widget for event SEQUENCE  the
        function identified with FUNCID."""
        bound = ''
        if funcid:
            self.deletecommand(funcid)
            funcs = self.tk.call('bind', self._w, sequence, None).split('\n')
            bound = '\n'.join([f for f in funcs if not f.startswith('if {{"[{0}'.format(funcid))])
        self.tk.call('bind', self._w, sequence, bound)
```
History
Date User Action Args
2020-01-05 18:22:42glombardosetrecipients: + glombardo, terry.reedy, serhiy.storchaka, j-4321-i
2020-01-05 18:22:42glombardosetmessageid: <1578248562.19.0.155651411235.issue31485@roundup.psfhosted.org>
2020-01-05 18:22:42glombardolinkissue31485 messages
2020-01-05 18:22:42glombardocreate