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

Method bind_class

Lib/tkinter/__init__.py:1600–1608  ·  view source on GitHub ↗

Bind to widgets with bindtag CLASSNAME at event SEQUENCE a call of 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

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

Source from the content-addressed store, hash-verified

1598 self._root()._unbind(('bind', 'all', sequence))
1599
1600 def bind_class(self, className, sequence=None, func=None, add=None):
1601 """Bind to widgets with bindtag CLASSNAME at event
1602 SEQUENCE a call of function FUNC. An additional
1603 boolean parameter ADD specifies whether FUNC will be
1604 called additionally to the other bound function or
1605 whether it will replace the previous function. See bind for
1606 the return value."""
1607
1608 return self._root()._bind(('bind', className), sequence, func, add, True)
1609
1610 def unbind_class(self, className, sequence):
1611 """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE

Callers 2

test_bind_eventsMethod · 0.80
fix_x11_pasteFunction · 0.80

Calls 2

_rootMethod · 0.95
_bindMethod · 0.45

Tested by 1

test_bind_eventsMethod · 0.64