Unset the variable in Tcl.
(self)
| 408 | self.initialize(self._default) |
| 409 | |
| 410 | def __del__(self): |
| 411 | """Unset the variable in Tcl.""" |
| 412 | if self._tk is None: |
| 413 | return |
| 414 | if self._tk.getboolean(self._tk.call("info", "exists", self._name)): |
| 415 | self._tk.globalunsetvar(self._name) |
| 416 | if self._tclCommands is not None: |
| 417 | for name in self._tclCommands: |
| 418 | self._tk.deletecommand(name) |
| 419 | self._tclCommands = None |
| 420 | |
| 421 | def __str__(self): |
| 422 | """Return the name of the variable in Tcl.""" |
nothing calls this directly
no test coverage detected