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

Method attach

Lib/idlelib/configdialog.py:2263–2268  ·  view source on GitHub ↗

Attach callback to all vars that are not traced.

(self)

Source from the content-addressed store, hash-verified

2261 return default_callback
2262
2263 def attach(self):
2264 "Attach callback to all vars that are not traced."
2265 while self.untraced:
2266 var, callback = self.untraced.pop()
2267 var.trace_add('write', callback)
2268 self.traced.append((var, callback))
2269
2270 def detach(self):
2271 "Remove callback from traced vars."

Callers 5

__init__Method · 0.45
test_load_font_cfgMethod · 0.45
test_load_theme_cfgMethod · 0.45
test_load_key_cfgMethod · 0.45
test_attach_detachMethod · 0.45

Calls 3

trace_addMethod · 0.80
popMethod · 0.45
appendMethod · 0.45

Tested by 4

test_load_font_cfgMethod · 0.36
test_load_theme_cfgMethod · 0.36
test_load_key_cfgMethod · 0.36
test_attach_detachMethod · 0.36