-
Book Overview & Buying
-
Table Of Contents
Python 2.6 Graphics Cookbook
By :
There is a vast list of romantically named colors like cornflower blue, misty rose, or papaya whip. There are about 340 of these named colors that are usable in Python.
Colors get names because people remember them most easily in association with a place and an emotional mood. It is easy to remember evocative names and therefore easier to use them. In this example, we reduce the long list down to 140 by using systematic names and eliminating colors that are very similar.
Execute the program shown in exactly the same way as all the examples in previous chapters. What you should see on your screen is a logically laid out chart of rectangular color swatches. Each will have its callable name on it. These are names you can use in Python/Tkinter programs and they will be correctly displayed.
#systematic_colorNames_1.py #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
Change the font size
Change margin width
Change background colour