Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
ok
Method · 0.95
Calls
2
destroy
Method · 0.95
focus_set
Method · 0.45
Tested by
no test coverage detected