]> granicus.if.org Git - python/commitdiff
Fix up the markup in some recently-added portions of the text.
authorFred Drake <fdrake@acm.org>
Fri, 23 Feb 2001 19:10:41 +0000 (19:10 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 23 Feb 2001 19:10:41 +0000 (19:10 +0000)
Doc/lib/libwinsound.tex

index a873b9e7c82adc6a8c7cf74e510a4ec36ac55032..a176221ac61ce15eb3cc4a775182204b56e5afd2 100644 (file)
@@ -44,35 +44,36 @@ two functions and several constants.
 \end{datadesc}
 
 \begin{datadesc}{SND_ALIAS}
-  The \var{sound} parameter is a sound association name from the registry.
-  If the registry contains no such name, play the system default sound
-  unless \constant{SND_NODEFAULT} is also specified.
-  If no default sound is registered, raise RuntimeError.
-  Do not use with \constant{SND_FILENAME).
+  The \var{sound} parameter is a sound association name from the
+  registry.  If the registry contains no such name, play the system
+  default sound unless \constant{SND_NODEFAULT} is also specified.
+  If no default sound is registered, raise \exception{RuntimeError}.
+  Do not use with \constant{SND_FILENAME}.
 
   All Win32 systems support at least the following; most systems support
   many more:
 
-  \begin{verbatim}
-  PlaySound argument    Corresponding Control Panel -> Sounds name
-  ------------------    ------------------------------------------
-  'SystemAsterisk'      Asterisk
-  'SystemExclamation'   Exclamation
-  'SystemExit'          Exit Windows
-  'SystemHand'          Critical Stop
-  'SystemQuestion'      Question
-  \end{verbatim}
-
-  For example,
-
-  \begin{verbatim}
-    # Play Windows exit sound.
-    winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
-
-    # Probably play Windows default sound, if any is registered (because
-    # "*" probably isn't the registered name of any sound).
-    winsound.PlaySound("*", winsound.SND_ALIAS)
-  \end{verbatim}
+\begin{tableii}{l|l}{code}
+               {\function{PlaySound()} \var{name}}
+               {Corresponding Control Panel Sound name}
+  \lineii{'SystemAsterisk'}   {Asterisk}
+  \lineii{'SystemExclamation'}{Exclamation}
+  \lineii{'SystemExit'}       {Exit Windows}
+  \lineii{'SystemHand'}       {Critical Stop}
+  \lineii{'SystemQuestion'}   {Question}
+\end{tableii}
+
+  For example:
+
+\begin{verbatim}
+import winsound
+# Play Windows exit sound.
+winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
+
+# Probably play Windows default sound, if any is registered (because
+# "*" probably isn't the registered name of any sound).
+winsound.PlaySound("*", winsound.SND_ALIAS)
+\end{verbatim}
 \end{datadesc}
 
 \begin{datadesc}{SND_LOOP}
@@ -86,7 +87,7 @@ two functions and several constants.
 
   \strong{Note:}  This module does not support playing from a memory
   image asynchronously, so a combination of this flag and
-  \constant{SND_ASYNC} will raise \exception{RuntimeError}.
+  \constant{SND_ASYNC} will raise \exception{RuntimeError}.
 \end{datadesc}
 
 \begin{datadesc}{SND_PURGE}