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

Method detach

Lib/tkinter/dnd.py:230–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 label.bind("<ButtonPress>", self.press)
229
230 def detach(self):
231 canvas = self.canvas
232 if canvas is None:
233 return
234 id = self.id
235 label = self.label
236 self.canvas = self.label = self.id = None
237 canvas.delete(id)
238 label.destroy()
239
240 def press(self, event):
241 if dnd_start(self, event):

Callers 2

attachMethod · 0.95
_startMethod · 0.45

Calls 2

deleteMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected