]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Documentation for Just's ColorPicker module, so the Mac OS guys get
authorFred Drake <fdrake@acm.org>
Fri, 13 Apr 2001 04:49:30 +0000 (04:49 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 13 Apr 2001 04:49:30 +0000 (04:49 +0000)
something out of this documentation release as well.  ;-)

Doc/mac/libcolorpicker.tex [new file with mode: 0644]
Doc/mac/mac.tex

diff --git a/Doc/mac/libcolorpicker.tex b/Doc/mac/libcolorpicker.tex
new file mode 100644 (file)
index 0000000..6520e23
--- /dev/null
@@ -0,0 +1,22 @@
+\section{\module{ColorPicker} ---
+         Color selection dialog}
+
+\declaremodule{extension}{ColorPicker}
+\modulesynopsis{}
+\moduleauthor{Just van Rossum}{just@letterror.com}
+\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
+
+
+The \module{ColorPicker} module provides access to the standard color
+picker dialog.
+
+
+\begin{funcdesc}{GetColor}{prompt, rgb}
+  Show a standard color selection dialog and allow the user to select
+  a color.  The user is given instruction by the \var{prompt} string,
+  and the default color is set to \var{rgb}.  \var{rgb} must be a
+  tuple giving the red, green, and blue components of the color.
+  \function{GetColor()} returns a tuple giving the user's selected
+  color and a flag indicating whether they accepted the selection of
+  cancelled.
+\end{funcdesc}
index c6c8a2d6b75530d8071c049117ec5d8a0ccd8957..2edd8573e0f28f75a60523390f2d8cb12c862d33 100644 (file)
@@ -67,6 +67,7 @@ documented here:
 \input{libaetypes}
 
 \input{toolbox}                         % MacOS Toolbox Modules
+\input{libcolorpicker}
 
 \input{undoc}                           % Undocumented Modules