summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/TypeinViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-02 16:27:40 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-02 16:27:40 (GMT)
commit69a4ab5a04c957758cd0264c6708418b10867405 (patch)
tree616502f53ae68c7da55d79eed1d726144d16aec2 /Tools/pynche/TypeinViewer.py
parent4638c5b7f351da1156a5f365646935510b67d97a (diff)
downloadcpython-69a4ab5a04c957758cd0264c6708418b10867405.zip
cpython-69a4ab5a04c957758cd0264c6708418b10867405.tar.gz
cpython-69a4ab5a04c957758cd0264c6708418b10867405.tar.bz2
Docstring
Diffstat (limited to 'Tools/pynche/TypeinViewer.py')
-rw-r--r--Tools/pynche/TypeinViewer.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tools/pynche/TypeinViewer.py b/Tools/pynche/TypeinViewer.py
index 83a700f..63df363 100644
--- a/Tools/pynche/TypeinViewer.py
+++ b/Tools/pynche/TypeinViewer.py
@@ -1,3 +1,17 @@
+"""TypeinViewer class.
+
+The TypeinViewer is what you see at the lower right of the main Pynche
+widget. It contains three text entry fields, one each for red, green, blue.
+Input into these windows is highly constrained; it only allows you to enter
+values that are legal for a color axis. This usually means 0-255 for decimal
+input and 0x0 - 0xff for hex input.
+
+You can toggle whether you want to view and input the values in either decimal
+or hex by clicking on Hexadecimal. By clicking on Update while typing, the
+color selection will be made on every change to the text field. Otherwise,
+you must hit Return or Tab to select the color.
+"""
+
from Tkinter import *
import string
import re