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

Function askyesnocancel

Lib/tkinter/messagebox.py:118–125  ·  view source on GitHub ↗

Ask a question; return true if the answer is yes, None if cancelled.

(title=None, message=None, **options)

Source from the content-addressed store, hash-verified

116
117
118def askyesnocancel(title=None, message=None, **options):
119 "Ask a question; return true if the answer is yes, None if cancelled."
120 s = _show(title, message, QUESTION, YESNOCANCEL, **options)
121 # s might be a Tcl index object, so convert it to a string
122 s = str(s)
123 if s == CANCEL:
124 return None
125 return s == YES
126
127
128def askretrycancel(title=None, message=None, **options):

Callers 1

messagebox.pyFile · 0.85

Calls 2

_showFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…