]> granicus.if.org Git - python/commitdiff
Clean up the descriptions of multi-signature functions so we do the right
authorFred Drake <fdrake@acm.org>
Thu, 15 Nov 2001 20:41:03 +0000 (20:41 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 15 Nov 2001 20:41:03 +0000 (20:41 +0000)
thing in the index.

Doc/lib/libturtle.tex

index ad2371c631f6d4c5083bb0d97b917b932640a15b..c63c876bd078522c40151c1baa2de6ccb513cbb2 100644 (file)
@@ -73,15 +73,13 @@ Set the line width to \var{width}.
 \end{funcdesc}
 
 \begin{funcdesc}{color}{s}
-Set the color by giving a Tk color string.
-\end{funcdesc}
-
-\begin{funcdesc}{color}{(r, g, b)}
-Set the color by giving a RGB tuple, each between 0 and 1.
-\end{funcdesc}
-
-\begin{funcdesc}{color}{r, g, b}
-Set the color by giving the RGB components, each between 0 and 1.
+\funclineni{color}{(r, g, b)}
+\funclineni{color}{r, g, b}
+Set the pen color.  In the first form, the color is specified as a
+Tk color specification as a string.  The second form specifies the
+color as a tuple of the RGB values, each in the range [0..1].  For the
+third form, the color is specified giving the RGB values as three
+separate parameters (each in the range [0..1]).
 \end{funcdesc}
 
 \begin{funcdesc}{write}{text\optional{, move}}
@@ -109,12 +107,9 @@ direction.
 \end{funcdesc}
 
 \begin{funcdesc}{goto}{x, y}
-Go to co-ordinates (\var{x}, \var{y}).
-\end{funcdesc}
-
-\begin{funcdesc}{goto}{(x, y)}
-Go to co-ordinates (\var{x}, \var{y}) (specified as a tuple instead of 
-individually).
+\funclineni{goto}{(x, y)}
+Go to co-ordinates \var{x}, \var{y}.  The co-ordinates may be
+specified either as two separate arguments or as a 2-tuple.
 \end{funcdesc}
 
 This module also does \code{from math import *}, so see the