Fix whitespace, delete extra '.'

This commit is contained in:
Terry Jan Reedy 2020-01-16 15:50:16 -05:00 committed by GitHub
parent 597ef39042
commit 082db44f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1386,8 +1386,8 @@ class Misc:
def unbind(self, sequence, funcid=None): def unbind(self, sequence, funcid=None):
"""Unbind for this widget the event SEQUENCE. """Unbind for this widget the event SEQUENCE.
If FUNCID is given, only unbind the function identified with FUNCID. If FUNCID is given, only unbind the function identified with FUNCID
and also delete that command. and also delete that command.
""" """
if funcid is None: if funcid is None:
@ -1398,7 +1398,6 @@ class Misc:
if not f.startswith(f'if {{"[{funcid}')) if not f.startswith(f'if {{"[{funcid}'))
self.tk.call('bind', self._w, sequence, keep) self.tk.call('bind', self._w, sequence, keep)
self.deletecommand(funcid) self.deletecommand(funcid)
def bind_all(self, sequence=None, func=None, add=None): def bind_all(self, sequence=None, func=None, add=None):
"""Bind to all widgets at an event SEQUENCE a call to function FUNC. """Bind to all widgets at an event SEQUENCE a call to function FUNC.