MCPcopy Index your code
hub / github.com/RustPython/RustPython / bind_class

Method bind_class

Lib/tkinter/__init__.py:1582–1590  ·  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

1580 self._root()._unbind(('bind', 'all', sequence))
1581
1582 def bind_class(self, className, sequence=None, func=None, add=None):
1583 """Bind to widgets with bindtag CLASSNAME at event
1584 SEQUENCE a call of function FUNC. An additional
1585 boolean parameter ADD specifies whether FUNC will be
1586 called additionally to the other bound function or
1587 whether it will replace the previous function. See bind for
1588 the return value."""
1589
1590 return self._root()._bind(('bind', className), sequence, func, add, True)
1591
1592 def unbind_class(self, className, sequence):
1593 """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE

Callers

nothing calls this directly

Calls 2

_rootMethod · 0.95
_bindMethod · 0.45

Tested by

no test coverage detected