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

Method edit_cancel

Lib/idlelib/tree.py:329–337  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

327 self.canvas.focus_set()
328
329 def edit_cancel(self, event=None):
330 try:
331 entry = self.entry
332 del self.entry
333 except AttributeError:
334 return
335 entry.destroy()
336 self.drawtext()
337 self.canvas.focus_set()
338
339
340class TreeItem:

Callers

nothing calls this directly

Calls 3

drawtextMethod · 0.95
destroyMethod · 0.45
focus_setMethod · 0.45

Tested by

no test coverage detected