(self, event)
| 238 | label.destroy() |
| 239 | |
| 240 | def press(self, event): |
| 241 | if dnd_start(self, event): |
| 242 | # where the pointer is relative to the label widget: |
| 243 | self.x_off = event.x |
| 244 | self.y_off = event.y |
| 245 | # where the widget is relative to the canvas: |
| 246 | self.x_orig, self.y_orig = self.canvas.coords(self.id) |
| 247 | |
| 248 | def move(self, event): |
| 249 | x, y = self.where(self.canvas, event) |