Next
/
Previous
/ Index
/ TCC Help System
/ Publications
/ Site map
/ NM Tech homepage
websafe: Display web-safe color swatches
|
|
The websafe.py script is a small program that
displays all the ``web-safe'' colors---a set of 216 colors
that should all display well on most older browsers.
It is a good starter example for Tkinter because it has
only two widgets: a canvas, where the colors and their
labels are displayed, and a ``Quit'' button at the bottom.
- Here is the
source file.
- Here is a color screen shot of the window
produced by the program:
Next: pickfont: An X font-picking tool in Python
See also: Tkinter: GUI programming with Python
Site map
Index:
Keyword index
to help pages
Help:
New Mexico Tech Computer Center: Help System
TCC Publications
Home:
About New Mexico Tech
John Shipman, john@nmt.edu
Last updated: 2004/03/07 01:43:52 UT
URL: http://www.nmt.edu/tcc/help/lang/python/websafe.html