![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/1544360/cwd/usr/share/doc/python2-docs/html/_sources/library/ |
:mod:`ColorPicker` --- Color selection dialog ============================================= .. module:: ColorPicker :platform: Mac :synopsis: Interface to the standard color selection dialog. :deprecated: .. moduleauthor:: Just van Rossum <[email protected]> .. sectionauthor:: Fred L. Drake, Jr. <[email protected]> The :mod:`ColorPicker` module provides access to the standard color picker dialog. .. note:: This module has been removed in Python 3.x. .. 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.