Skip to content

Commit ddb9fc1

Browse files
committed
Added docstring
1 parent b44056e commit ddb9fc1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Tools/pynche/ChipViewer.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
"""Chip viewer and widget.
2+
3+
In the lower left corner of the main Pynche window, you will see two
4+
ChipWidgets, one for the selected color and one for the nearest color. The
5+
selected color is the actual RGB value expressed as an X11 #COLOR name. The
6+
nearest color is the named color from the X11 database that is closest to the
7+
selected color in 3D space. There may be other colors equally close, but the
8+
nearest one is the first one found.
9+
10+
Clicking on the nearest color chip selects that named color.
11+
12+
The ChipViewer class includes the entire lower left quandrant; i.e. both the
13+
selected and nearest ChipWidgets.
14+
"""
15+
116
from types import StringType
217
from Tkinter import *
318
import ColorDB

0 commit comments

Comments
 (0)