Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f5f9d99974febbff6d4d55ef36bbfa0c71ed0738 authored by Barry Warsaw on 12 September 2008, 23:35:48 UTC
Fix the release level
Tip revision: f5f9d99
colorpicker.rst

:mod:`ColorPicker` --- Color selection dialog
=============================================

.. module:: ColorPicker
   :platform: Mac
   :synopsis: Interface to the standard color selection dialog.
   :deprecated:
.. moduleauthor:: Just van Rossum <just@letterror.com>
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>


The :mod:`ColorPicker` module provides access to the standard color picker
dialog.

.. warning::

   This module is removed in 3.0.


.. function:: GetColor(prompt, rgb)

   Show a standard color selection dialog and allow the user to select a color.
   The user is given instruction by the *prompt* string, and the default color is
   set to *rgb*.  *rgb* must be a tuple giving the red, green, and blue components
   of the color. :func:`GetColor` returns a tuple giving the user's selected color
   and a flag indicating whether they accepted the selection of cancelled.

back to top