summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/ChipViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-02 15:58:50 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-02 15:58:50 (GMT)
commitddb9fc1ebd0c019c0c651e4335d6cdfd043ef7c5 (patch)
tree9d991f3602ab5c1349ee78ddbe36c70e44c6cd0d /Tools/pynche/ChipViewer.py
parentb44056ec94c447a352385e71e1e3203305fbf54f (diff)
downloadcpython-ddb9fc1ebd0c019c0c651e4335d6cdfd043ef7c5.zip
cpython-ddb9fc1ebd0c019c0c651e4335d6cdfd043ef7c5.tar.gz
cpython-ddb9fc1ebd0c019c0c651e4335d6cdfd043ef7c5.tar.bz2
Added docstring
Diffstat (limited to 'Tools/pynche/ChipViewer.py')
-rw-r--r--Tools/pynche/ChipViewer.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/pynche/ChipViewer.py b/Tools/pynche/ChipViewer.py
index 7f9ebc7..ef70e95 100644
--- a/Tools/pynche/ChipViewer.py
+++ b/Tools/pynche/ChipViewer.py
@@ -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