MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / bind_class

Method bind_class

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:1487–1495  ·  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

1485 self._root()._unbind(('bind', 'all', sequence))
1486
1487 def bind_class(self, className, sequence=None, func=None, add=None):
1488 """Bind to widgets with bindtag CLASSNAME at event
1489 SEQUENCE a call of function FUNC. An additional
1490 boolean parameter ADD specifies whether FUNC will be
1491 called additionally to the other bound function or
1492 whether it will replace the previous function. See bind for
1493 the return value."""
1494
1495 return self._root()._bind(('bind', className), sequence, func, add, True)
1496
1497 def unbind_class(self, className, sequence):
1498 """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