Where do I find what colors and fonts are available?

Cousin Stanley CousinStanley at HotMail.Com
Sat May 15 18:57:47 EDT 2004


On Thu, 13 May 2004 22:56:44 GMT, SeeBelow at SeeBelow.Nut wrote:

> I'm learning Tkinter, from Grayson's book and some online sources.
> 
> I don't know how to find out which color names and font names are
> available on my system.  I'm using Windows 2000.  I assume that info is
> in some file or files somewhere, buy I don't know the file name or
> directory.
> 
> Thanks,
> 
> Mitchell Timin

Mitchell .... 

  For a list of fonts in Tkinter,
  you might try .... 

import Tkinter
import tkFont

root = Tkinter.Tk()

list_fonts = list( tkFont.families() )

list_fonts.sort()

for this_family in list_fonts :

    print this_family


For a list of colors in Tkinter
check the list at .... 

    http://www.tcl.tk/man/tcl8.3/TkCmd/colors.htm 

-- 
Cousin Stanley
Human Being
Phoenix, Arizona



More information about the Python-list mailing list