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

Method cancel

Lib/idlelib/query.py:153–156  ·  view source on GitHub ↗

Set dialog result to None and destroy tk widget.

(self, event=None)

Source from the content-addressed store, hash-verified

151 self.entry.focus_set()
152
153 def cancel(self, event=None): # Do not replace.
154 "Set dialog result to None and destroy tk widget."
155 self.result = None
156 self.destroy()
157
158 def destroy(self):
159 self.grab_release()

Callers 4

test_cancelMethod · 0.45
tearDownClassMethod · 0.45
tearDownClassMethod · 0.45
tearDownClassMethod · 0.45

Calls 1

destroyMethod · 0.95

Tested by 4

test_cancelMethod · 0.36
tearDownClassMethod · 0.36
tearDownClassMethod · 0.36
tearDownClassMethod · 0.36