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

Method destroy

Lib/tkinter/ttk.py:1533–1543  ·  view source on GitHub ↗

Destroy this widget and possibly its associated variable.

(self)

Source from the content-addressed store, hash-verified

1531
1532
1533 def destroy(self):
1534 """Destroy this widget and possibly its associated variable."""
1535 try:
1536 self._variable.trace_remove('write', self.__tracecb)
1537 except AttributeError:
1538 pass
1539 else:
1540 del self._variable
1541 super().destroy()
1542 self.label = None
1543 self.scale = None
1544
1545
1546 def _adjust(self, *args):

Callers 5

test_widget_destroyMethod · 0.95
test_initializationMethod · 0.95
test_horizontal_rangeMethod · 0.95
test_variable_changeMethod · 0.95
test_resizeMethod · 0.95

Calls 3

superClass · 0.85
trace_removeMethod · 0.80
destroyMethod · 0.45

Tested by 5

test_widget_destroyMethod · 0.76
test_initializationMethod · 0.76
test_horizontal_rangeMethod · 0.76
test_variable_changeMethod · 0.76
test_resizeMethod · 0.76