Issue #6644: Fix compile error on AIX.
[python.git] / Doc / library / colorpicker.rst
blobb1a5a738aeea78c6883450c9d7049b16a349dc11
2 :mod:`ColorPicker` --- Color selection dialog
3 =============================================
5 .. module:: ColorPicker
6    :platform: Mac
7    :synopsis: Interface to the standard color selection dialog.
8    :deprecated:
9 .. moduleauthor:: Just van Rossum <just@letterror.com>
10 .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
13 The :mod:`ColorPicker` module provides access to the standard color picker
14 dialog.
16 .. note::
18    This module has been removed in Python 3.x.
21 .. function:: GetColor(prompt, rgb)
23    Show a standard color selection dialog and allow the user to select a color.
24    The user is given instruction by the *prompt* string, and the default color is
25    set to *rgb*.  *rgb* must be a tuple giving the red, green, and blue components
26    of the color. :func:`GetColor` returns a tuple giving the user's selected color
27    and a flag indicating whether they accepted the selection of cancelled.