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

Method __del__

Lib/idlelib/tooltip.py:103–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self._id3 = self.anchor_widget.bind("<Button>", self._hide_event)
102
103 def __del__(self):
104 try:
105 self.anchor_widget.unbind("<Enter>", self._id1)
106 self.anchor_widget.unbind("<Leave>", self._id2) # pragma: no cover
107 self.anchor_widget.unbind("<Button>", self._id3) # pragma: no cover
108 except TclError:
109 pass
110 super().__del__()
111
112 def _show_event(self, event=None):
113 """event handler to display the tooltip"""

Callers

nothing calls this directly

Calls 3

superClass · 0.85
unbindMethod · 0.45
__del__Method · 0.45

Tested by

no test coverage detected