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

Method bind_all

Lib/tkinter/__init__.py:1589–1594  ·  view source on GitHub ↗

Bind to all widgets at an event SEQUENCE a call to function FUNC. An additional boolean parameter ADD specifies whether FUNC will be called additionally to the other bound function or whether it will replace the previous function. See bind for the return value.

(self, sequence=None, func=None, add=None)

Source from the content-addressed store, hash-verified

1587 self.deletecommand(funcid)
1588
1589 def bind_all(self, sequence=None, func=None, add=None):
1590 """Bind to all widgets at an event SEQUENCE a call to function FUNC.
1591 An additional boolean parameter ADD specifies whether FUNC will
1592 be called additionally to the other bound function or whether
1593 it will replace the previous function. See bind for the return value."""
1594 return self._root()._bind(('bind', 'all'), sequence, func, add, True)
1595
1596 def unbind_all(self, sequence):
1597 """Unbind for all widgets for event SEQUENCE all functions."""

Callers 2

test_bind_eventsMethod · 0.80
makeTextFrameMethod · 0.80

Calls 2

_rootMethod · 0.95
_bindMethod · 0.45

Tested by 1

test_bind_eventsMethod · 0.64