Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix whitespace, delete extra '.'
  • Loading branch information
terryjreedy authored Jan 16, 2020
commit 082db44f9ef2765cc33f39a8d889704760852171
5 changes: 2 additions & 3 deletions Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,8 +1386,8 @@ def bind(self, sequence=None, func=None, add=None):

def unbind(self, sequence, funcid=None):
"""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.
"""
if funcid is None:
Expand All @@ -1398,7 +1398,6 @@ def unbind(self, sequence, funcid=None):
if not f.startswith(f'if {{"[{funcid}'))
self.tk.call('bind', self._w, sequence, keep)
self.deletecommand(funcid)


def bind_all(self, sequence=None, func=None, add=None):
"""Bind to all widgets at an event SEQUENCE a call to function FUNC.
Expand Down