1:mod:`tkinter.messagebox` --- Tkinter message prompts 2===================================================== 3 4.. module:: tkinter.messagebox 5 :platform: Tk 6 :synopsis: Various types of alert dialogs 7 8**Source code:** :source:`Lib/tkinter/messagebox.py` 9 10-------------- 11 12The :mod:`tkinter.messagebox` module provides a template base class as well as 13a variety of convenience methods for commonly used configurations. The message 14boxes are modal and will return a subset of (True, False, OK, None, Yes, No) based on 15the user's selection. Common message box styles and layouts include but are not 16limited to: 17 18.. figure:: tk_msg.png 19 20.. class:: Message(master=None, **options) 21 22 Create a default information message box. 23 24**Information message box** 25 26.. method:: showinfo(title=None, message=None, **options) 27 28**Warning message boxes** 29 30.. method:: showwarning(title=None, message=None, **options) 31 showerror(title=None, message=None, **options) 32 33**Question message boxes** 34 35.. method:: askquestion(title=None, message=None, **options) 36 askokcancel(title=None, message=None, **options) 37 askretrycancel(title=None, message=None, **options) 38 askyesno(title=None, message=None, **options) 39 askyesnocancel(title=None, message=None, **options)