MCPcopy Index your code
hub / github.com/RustPython/RustPython / cancel

Method cancel

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

Source from the content-addressed store, hash-verified

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

Callers 1

okMethod · 0.95

Calls 2

destroyMethod · 0.95
focus_setMethod · 0.80

Tested by

no test coverage detected