Fixed: #2914 (RFE for UTC support in TimedRotatingFileHandler) and #2929 (wrong filen...
[python.git] / Doc / library / colorpicker.rst
blobe0771acf90b177bf56d6bd8b700d61b81abbceb6
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 .. warning::
18    This module is removed in 3.0.
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.