Attach callback to all vars that are not traced.
(self)
| 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." |