1 \section{\module{ColorPicker
} ---
2 Color selection dialog
}
4 \declaremodule{extension
}{ColorPicker
}
6 \modulesynopsis{Interface to the standard
color selection dialog.
}
7 \moduleauthor{Just van Rossum
}{just@letterror.com
}
8 \sectionauthor{Fred L. Drake, Jr.
}{fdrake@acm.org
}
11 The
\module{ColorPicker
} module provides access to the standard
color
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