blob: 596e9c2e2734359861b67c98bcd4e34ee30ee54d [file] [log] [blame]
Fred Drakeb6bdcb22001-04-13 04:49:30 +00001\section{\module{ColorPicker} ---
2 Color selection dialog}
3
4\declaremodule{extension}{ColorPicker}
Fred Drake0c4d4682001-04-13 17:37:00 +00005 \platform{Mac}
Fred Drake0eeca632001-05-10 22:36:13 +00006\modulesynopsis{Interface to the standard color selection dialog.}
Fred Drakeb6bdcb22001-04-13 04:49:30 +00007\moduleauthor{Just van Rossum}{just@letterror.com}
8\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
9
10
11The \module{ColorPicker} module provides access to the standard color
12picker dialog.
13
14
15\begin{funcdesc}{GetColor}{prompt, rgb}
16 Show a standard color selection dialog and allow the user to select
17 a color. The user is given instruction by the \var{prompt} string,
18 and the default color is set to \var{rgb}. \var{rgb} must be a
19 tuple giving the red, green, and blue components of the color.
20 \function{GetColor()} returns a tuple giving the user's selected
21 color and a flag indicating whether they accepted the selection of
22 cancelled.
23\end{funcdesc}