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

Method wm_protocol

Lib/tkinter/__init__.py:2378–2387  ·  view source on GitHub ↗

Bind function FUNC to command NAME for this widget. Return the function bound to NAME if None is given. NAME could be e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".

(self, name=None, func=None)

Source from the content-addressed store, hash-verified

2376 positionfrom = wm_positionfrom
2377
2378 def wm_protocol(self, name=None, func=None):
2379 """Bind function FUNC to command NAME for this widget.
2380 Return the function bound to NAME if None is given. NAME could be
2381 e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
2382 if callable(func):
2383 command = self._register(func)
2384 else:
2385 command = func
2386 return self.tk.call(
2387 'wm', 'protocol', self._w, name, command)
2388
2389 protocol = wm_protocol
2390

Callers

nothing calls this directly

Calls 3

callableFunction · 0.85
_registerMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected