Fred Drake | b6bdcb2 | 2001-04-13 04:49:30 +0000 | [diff] [blame] | 1 | \section{\module{ColorPicker} --- |
| 2 | Color selection dialog} |
| 3 | |
| 4 | \declaremodule{extension}{ColorPicker} |
Fred Drake | 0c4d468 | 2001-04-13 17:37:00 +0000 | [diff] [blame] | 5 | \platform{Mac} |
Fred Drake | 0eeca63 | 2001-05-10 22:36:13 +0000 | [diff] [blame] | 6 | \modulesynopsis{Interface to the standard color selection dialog.} |
Fred Drake | b6bdcb2 | 2001-04-13 04:49:30 +0000 | [diff] [blame] | 7 | \moduleauthor{Just van Rossum}{just@letterror.com} |
| 8 | \sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org} |
| 9 | |
| 10 | |
| 11 | The \module{ColorPicker} module provides access to the standard color |
| 12 | picker 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} |