PageRenderTime 555ms CodeModel.GetById 433ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

/Doc/library/colorpicker.rst

http://unladen-swallow.googlecode.com/
ReStructuredText | 28 lines | 18 code | 10 blank | 0 comment | 0 complexity | b975f4921b171ac4f71c19f8078617da MD5 | raw file
 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@letterror.com>
10.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
11
12
13The :mod:`ColorPicker` module provides access to the standard color picker
14dialog.
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