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

Function _show

Lib/tkinter/messagebox.py:71–83  ·  view source on GitHub ↗
(title=None, message=None, _icon=None, _type=None, **options)

Source from the content-addressed store, hash-verified

69
70# Rename _icon and _type options to allow overriding them in options
71def _show(title=None, message=None, _icon=None, _type=None, **options):
72 if _icon and "icon" not in options: options["icon"] = _icon
73 if _type and "type" not in options: options["type"] = _type
74 if title: options["title"] = title
75 if message: options["message"] = message
76 res = Message(**options).show()
77 # In some Tcl installations, yes/no is converted into a boolean.
78 if isinstance(res, bool):
79 if res:
80 return YES
81 return NO
82 # In others we get a Tcl_Obj.
83 return str(res)
84
85
86def showinfo(title=None, message=None, **options):

Callers 8

showinfoFunction · 0.85
showwarningFunction · 0.85
showerrorFunction · 0.85
askquestionFunction · 0.85
askokcancelFunction · 0.85
askyesnoFunction · 0.85
askyesnocancelFunction · 0.85
askretrycancelFunction · 0.85

Calls 3

strFunction · 0.85
MessageClass · 0.70
showMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…