Destroy this widget and possibly its associated variable.
(self)
| 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): |