MCPcopy Index your code
hub / github.com/python/cpython / unbind

Method unbind

Lib/tkinter/__init__.py:1565–1574  ·  view source on GitHub ↗

Unbind for this widget the event SEQUENCE. If FUNCID is given, only unbind the function identified with FUNCID and also delete the corresponding Tcl command. Otherwise destroy the current binding for SEQUENCE, leaving SEQUENCE unbound.

(self, sequence, funcid=None)

Source from the content-addressed store, hash-verified

1563 return self._bind(('bind', self._w), sequence, func, add)
1564
1565 def unbind(self, sequence, funcid=None):
1566 """Unbind for this widget the event SEQUENCE.
1567
1568 If FUNCID is given, only unbind the function identified with FUNCID
1569 and also delete the corresponding Tcl command.
1570
1571 Otherwise destroy the current binding for SEQUENCE, leaving SEQUENCE
1572 unbound.
1573 """
1574 self._unbind(('bind', self._w, sequence), funcid)
1575
1576 def _unbind(self, what, funcid=None):
1577 if funcid is None:

Callers 3

finishMethod · 0.45
test_unbindMethod · 0.45
test_unbind2Method · 0.45

Calls 1

_unbindMethod · 0.95

Tested by 2

test_unbindMethod · 0.36
test_unbind2Method · 0.36