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

Class CallWrapper

Lib/tkinter/__init__.py:2129–2148  ·  view source on GitHub ↗

Internal class. Stores function to call when some user defined Tcl function is called e.g. after an event occurred.

Source from the content-addressed store, hash-verified

2127
2128
2129class CallWrapper:
2130 """Internal class. Stores function to call when some user
2131 defined Tcl function is called e.g. after an event occurred."""
2132
2133 def __init__(self, func, subst, widget):
2134 """Store FUNC, SUBST and WIDGET as members."""
2135 self.func = func
2136 self.subst = subst
2137 self.widget = widget
2138
2139 def __call__(self, *args):
2140 """Apply first function SUBST to arguments, than FUNC."""
2141 try:
2142 if self.subst:
2143 args = self.subst(*args)
2144 return self.func(*args)
2145 except SystemExit:
2146 raise
2147 except:
2148 self.widget._report_exception()
2149
2150
2151class XView:

Callers 2

_registerMethod · 0.85
_registerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…