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

Method cancel

Lib/tkinter/simpledialog.py:203–208  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

201 self.cancel()
202
203 def cancel(self, event=None):
204
205 # put focus back to the parent window
206 if self.parent is not None:
207 self.parent.focus_set()
208 self.destroy()
209
210 #
211 # command hooks

Callers 1

okMethod · 0.95

Calls 2

destroyMethod · 0.95
focus_setMethod · 0.45

Tested by

no test coverage detected