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

Method _unbind

Lib/tkinter/__init__.py:1558–1569  ·  view source on GitHub ↗
(self, what, funcid=None)

Source from the content-addressed store, hash-verified

1556 self._unbind(('bind', self._w, sequence), funcid)
1557
1558 def _unbind(self, what, funcid=None):
1559 if funcid is None:
1560 self.tk.call(*what, '')
1561 else:
1562 lines = self.tk.call(what).split('\n')
1563 prefix = f'if {{"[{funcid} '
1564 keep = '\n'.join(line for line in lines
1565 if not line.startswith(prefix))
1566 if not keep.strip():
1567 keep = ''
1568 self.tk.call(*what, keep)
1569 self.deletecommand(funcid)
1570
1571 def bind_all(self, sequence=None, func=None, add=None):
1572 """Bind to all widgets at an event SEQUENCE a call to function FUNC.

Callers 5

unbindMethod · 0.95
unbind_allMethod · 0.80
unbind_classMethod · 0.80
tag_unbindMethod · 0.80
tag_unbindMethod · 0.80

Calls 6

deletecommandMethod · 0.95
callMethod · 0.45
splitMethod · 0.45
joinMethod · 0.45
startswithMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected