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

Method finish

Lib/tkinter/dnd.py:185–202  ·  view source on GitHub ↗
(self, event, commit=0)

Source from the content-addressed store, hash-verified

183 self.finish(event, 0)
184
185 def finish(self, event, commit=0):
186 target = self.target
187 source = self.source
188 widget = self.initial_widget
189 root = self.root
190 try:
191 del root.__dnd
192 self.initial_widget.unbind(self.release_pattern)
193 self.initial_widget.unbind("<Motion>")
194 widget['cursor'] = self.save_cursor
195 self.target = self.source = self.initial_widget = self.root = None
196 if target is not None:
197 if commit:
198 target.dnd_commit(source, event)
199 else:
200 target.dnd_leave(source, event)
201 finally:
202 source.dnd_end(target, event)
203
204
205# ----------------------------------------------------------------------

Callers 2

on_releaseMethod · 0.95
cancelMethod · 0.95

Calls 4

dnd_commitMethod · 0.80
dnd_leaveMethod · 0.80
dnd_endMethod · 0.80
unbindMethod · 0.45

Tested by

no test coverage detected