MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / destroy

Method destroy

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:679–688  ·  view source on GitHub ↗

Internal function. Delete all Tcl commands created for this widget in the Tcl interpreter.

(self)

Source from the content-addressed store, hash-verified

677 _tclCommands = None
678
679 def destroy(self):
680 """Internal function.
681
682 Delete all Tcl commands created for
683 this widget in the Tcl interpreter."""
684 if self._tclCommands is not None:
685 for name in self._tclCommands:
686 #print '- Tkinter: deleted command', name
687 self.tk.deletecommand(name)
688 self._tclCommands = None
689
690 def deletecommand(self, name):
691 """Internal function.

Callers

nothing calls this directly

Calls 1

deletecommandMethod · 0.80

Tested by

no test coverage detected