diff options
author | Guido van Rossum <guido@python.org> | 2003-05-16 01:42:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-05-16 01:42:22 (GMT) |
commit | 8f512a22cd9fe90c2bf52537f703818cc0d7f1b8 (patch) | |
tree | 0c178c7d0f989e94c6f9d30e7f73c767d665fc1d /Doc | |
parent | 993bc3a708a90be090626e1a4e188b1bf613b69b (diff) | |
download | cpython-8f512a22cd9fe90c2bf52537f703818cc0d7f1b8.zip cpython-8f512a22cd9fe90c2bf52537f703818cc0d7f1b8.tar.gz cpython-8f512a22cd9fe90c2bf52537f703818cc0d7f1b8.tar.bz2 |
Add docs for MessageBeep.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libwinsound.tex | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Doc/lib/libwinsound.tex b/Doc/lib/libwinsound.tex index 0418c74..d6518ad 100644 --- a/Doc/lib/libwinsound.tex +++ b/Doc/lib/libwinsound.tex @@ -37,6 +37,16 @@ two functions and several constants. \exception{RuntimeError} is raised. \end{funcdesc} +\begin{funcdesc}{MessageBeep}{\optional{type=\code{MB_OK}}} + Call the underlying \cfunction{MessageBeep()} function from the + Platform API. This plays a sound as specified in the registry. The + \var{type} argument specifies which sound to play; possible values + are \code{-1}, \code{MB_ICONASTERISK}, \code{MB_ICONEXCLAMATION}, + \code{MB_ICONHAND}, \code{MB_ICONQUESTION}, and \code{MB_OK}, all + described below. The value \code{-1} produces a ``simple beep''; + this is the final fallback if a sound cannot be played otherwise. + \versionadded{2.3} +\end{funcdesc} \begin{datadesc}{SND_FILENAME} The \var{sound} parameter is the name of a WAV file. @@ -110,3 +120,23 @@ winsound.PlaySound("*", winsound.SND_ALIAS) \begin{datadesc}{SND_NOWAIT} Return immediately if the sound driver is busy. \end{datadesc} + +\begin{datadesc}{MB_ICONASTERISK} + Play the \code{SystemDefault} sound. +\end{datadesc} + +\begin{datadesc}{MB_ICONEXCLAMATION} + Play the \code{SystemExclamation} sound. +\end{datadesc} + +\begin{datadesc}{MB_ICONHAND} + Play the \code{SystemHand} sound. +\end{datadesc} + +\begin{datadesc}{MB_ICONQUESTION} + Play the \code{SystemQuestion} sound. +\end{datadesc} + +\begin{datadesc}{MB_OK} + Play the \code{SystemDefault} sound. +\end{datadesc} |