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

Method trace_vdelete

Lib/tkinter/__init__.py:511–531  ·  view source on GitHub ↗

Delete the trace callback for a variable. MODE is one of "r", "w", "u" for read, write, undefine. CBNAME is the name of the callback returned from trace_variable or trace. This deprecated method wraps a deprecated Tcl method that will likely be removed in the future

(self, mode, cbname)

Source from the content-addressed store, hash-verified

509 trace = trace_variable
510
511 def trace_vdelete(self, mode, cbname):
512 """Delete the trace callback for a variable.
513
514 MODE is one of "r", "w", "u" for read, write, undefine.
515 CBNAME is the name of the callback returned from trace_variable or trace.
516
517 This deprecated method wraps a deprecated Tcl method that will
518 likely be removed in the future. Use trace_remove() instead.
519 """
520 # TODO: Add deprecation warning
521 self._tk.call("trace", "vdelete", self._name, mode, cbname)
522 cbname = self._tk.splitlist(cbname)[0]
523 for m, ca in self.trace_info():
524 if self._tk.splitlist(ca)[0] == cbname:
525 break
526 else:
527 self._tk.deletecommand(cbname)
528 try:
529 self._tclCommands.remove(cbname)
530 except ValueError:
531 pass
532
533 def trace_vinfo(self):
534 """Return all trace callback information.

Callers

nothing calls this directly

Calls 4

trace_infoMethod · 0.95
deletecommandMethod · 0.80
callMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected