File: libcolorpicker.tex

package info (click to toggle)
python2.4-doc 2.4.4-2
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 6,860 kB
  • ctags: 2,455
  • sloc: python: 5,194; perl: 3,666; sh: 1,605; makefile: 1,174; xml: 836; lisp: 836; ansic: 718; sed: 2
file content (23 lines) | stat: -rw-r--r-- 857 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\section{\module{ColorPicker} ---
         Color selection dialog}

\declaremodule{extension}{ColorPicker}
  \platform{Mac}
\modulesynopsis{Interface to the standard color selection dialog.}
\moduleauthor{Just van Rossum}{just@letterror.com}
\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}


The \module{ColorPicker} module provides access to the standard color
picker dialog.


\begin{funcdesc}{GetColor}{prompt, rgb}
  Show a standard color selection dialog and allow the user to select
  a color.  The user is given instruction by the \var{prompt} string,
  and the default color is set to \var{rgb}.  \var{rgb} must be a
  tuple giving the red, green, and blue components of the color.
  \function{GetColor()} returns a tuple giving the user's selected
  color and a flag indicating whether they accepted the selection of
  cancelled.
\end{funcdesc}