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

Method destroy

Lib/tkinter/__init__.py:2575–2583  ·  view source on GitHub ↗

Destroy this and all descendants widgets. This will end the application of this Tcl interpreter.

(self)

Source from the content-addressed store, hash-verified

2573 self.protocol("WM_DELETE_WINDOW", self.destroy)
2574
2575 def destroy(self):
2576 """Destroy this and all descendants widgets. This will
2577 end the application of this Tcl interpreter."""
2578 for c in list(self.children.values()): c.destroy()
2579 self.tk.call('destroy', self._w)
2580 Misc.destroy(self)
2581 global _default_root
2582 if _support_default_root and _default_root is self:
2583 _default_root = None
2584
2585 def readprofile(self, baseName, className):
2586 """Internal function. It reads .BASENAME.tcl and .CLASSNAME.tcl into

Callers 15

test_askcolorMethod · 0.95
test_default_rootMethod · 0.95
test_no_default_rootMethod · 0.95
test_getbooleanMethod · 0.95
test_mainloopMethod · 0.95
test_variableMethod · 0.95
test_askintegerMethod · 0.95
test_familiesMethod · 0.95
test_namesMethod · 0.95
test_nametofontMethod · 0.95
test_image_typesMethod · 0.95
test_image_namesMethod · 0.95

Calls 3

listClass · 0.85
valuesMethod · 0.45
callMethod · 0.45

Tested by 15

test_askcolorMethod · 0.76
test_default_rootMethod · 0.76
test_no_default_rootMethod · 0.76
test_getbooleanMethod · 0.76
test_mainloopMethod · 0.76
test_variableMethod · 0.76
test_askintegerMethod · 0.76
test_familiesMethod · 0.76
test_namesMethod · 0.76
test_nametofontMethod · 0.76
test_image_typesMethod · 0.76
test_image_namesMethod · 0.76