2 :mod:`ColorPicker` --- Color selection dialog
3 =============================================
5 .. module:: ColorPicker
7 :synopsis: Interface to the standard color selection dialog.
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
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.