]> granicus.if.org Git - python/commitdiff
Added docstring
authorBarry Warsaw <barry@python.org>
Fri, 2 Oct 1998 15:58:50 +0000 (15:58 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 2 Oct 1998 15:58:50 +0000 (15:58 +0000)
Tools/pynche/ChipViewer.py

index 7f9ebc7669fc5492761a93d0035ae954033ad868..ef70e95c5a1bf4acc31e5a5f8c7f0649da893df9 100644 (file)
@@ -1,3 +1,18 @@
+"""Chip viewer and widget.
+
+In the lower left corner of the main Pynche window, you will see two
+ChipWidgets, one for the selected color and one for the nearest color.  The
+selected color is the actual RGB value expressed as an X11 #COLOR name. The
+nearest color is the named color from the X11 database that is closest to the
+selected color in 3D space.  There may be other colors equally close, but the
+nearest one is the first one found.
+
+Clicking on the nearest color chip selects that named color.
+
+The ChipViewer class includes the entire lower left quandrant; i.e. both the
+selected and nearest ChipWidgets.
+"""
+
 from types import StringType
 from Tkinter import *
 import ColorDB