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

Method make_callback

Lib/idlelib/configdialog.py:2256–2261  ·  view source on GitHub ↗

Return default callback function to add values to changes instance.

(var, config)

Source from the content-addressed store, hash-verified

2254
2255 @staticmethod
2256 def make_callback(var, config):
2257 "Return default callback function to add values to changes instance."
2258 def default_callback(*params):
2259 "Add config values to changes instance."
2260 changes.add_option(*config, var.get())
2261 return default_callback
2262
2263 def attach(self):
2264 "Attach callback to all vars that are not traced."

Callers 2

addMethod · 0.95
test_make_callbackMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_make_callbackMethod · 0.64