cpython/Doc/library/tkinter.messagebox.rst
Julien Palard bcafab849e
[doc]: Spotted errors while working on rstlint. (GH-30879)
Also ignored some `make suspicious` false positives while assuring
true positives were properly seen by rstlint.
2022-01-27 08:57:43 +01:00

40 lines
1.3 KiB
ReStructuredText

:mod:`tkinter.messagebox` --- Tkinter message prompts
=====================================================
.. module:: tkinter.messagebox
:platform: Tk
:synopsis: Various types of alert dialogs
**Source code:** :source:`Lib/tkinter/messagebox.py`
--------------
The :mod:`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:
.. figure:: tk_msg.png
.. class:: Message(master=None, **options)
Create a default information message box.
**Information message box**
.. method:: showinfo(title=None, message=None, **options)
**Warning message boxes**
.. method:: showwarning(title=None, message=None, **options)
showerror(title=None, message=None, **options)
**Question message boxes**
.. method:: askquestion(title=None, message=None, **options)
askokcancel(title=None, message=None, **options)
askretrycancel(title=None, message=None, **options)
askyesno(title=None, message=None, **options)
askyesnocancel(title=None, message=None, **options)