2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
:mod:`ColorPicker` --- Color selection dialog
|
|
|
|
=============================================
|
|
|
|
|
|
|
|
.. module:: ColorPicker
|
|
|
|
:platform: Mac
|
|
|
|
:synopsis: Interface to the standard color selection dialog.
|
2008-05-12 18:42:13 -03:00
|
|
|
:deprecated:
|
2007-08-15 11:28:01 -03:00
|
|
|
.. 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.
|
|
|
|
|
2008-05-12 18:42:13 -03:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This module is removed in 3.0.
|
|
|
|
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
.. 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.
|
|
|
|
|