Home | History | Annotate | Download | only in library
      1 
      2 :mod:`ColorPicker` --- Color selection dialog
      3 =============================================
      4 
      5 .. module:: ColorPicker
      6    :platform: Mac
      7    :synopsis: Interface to the standard color selection dialog.
      8    :deprecated:
      9 .. moduleauthor:: Just van Rossum <just (a] letterror.com>
     10 .. sectionauthor:: Fred L. Drake, Jr. <fdrake (a] acm.org>
     11 
     12 
     13 The :mod:`ColorPicker` module provides access to the standard color picker
     14 dialog.
     15 
     16 .. note::
     17 
     18    This module has been removed in Python 3.x.
     19 
     20 
     21 .. function:: GetColor(prompt, rgb)
     22 
     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.
     28 
     29