tkinter.messagebox --- Tkinter message promptsP

Source code: Lib/tkinter/messagebox.py


The tkinter.messagebox module provides a template base class as well as a variety of convenience methods for commonly used configurations. The message boxes are modal and will return a subset of (True, False, OK, None, Yes, No) based on the user's selection. Common message box styles and layouts include but are not limited to:

../_images/tk_msg.png
class tkinter.messagebox.Message(master=None, **options)P

Create a default information message box.

Information message box

tkinter.messagebox.showinfo(title=None, message=None, **options)P

Warning message boxes

tkinter.messagebox.showwarning(title=None, message=None, **options)P
tkinter.messagebox.showerror(title=None, message=None, **options)P

Question message boxes

tkinter.messagebox.askquestion(title=None, message=None, **options)P
tkinter.messagebox.askokcancel(title=None, message=None, **options)P
tkinter.messagebox.askretrycancel(title=None, message=None, **options)P
tkinter.messagebox.askyesno(title=None, message=None, **options)P
tkinter.messagebox.askyesnocancel(title=None, message=None, **options)P