How to change default font in Tkinter

Randall Hopper aa8vb at vislab.epa.gov
Thu May 6 07:45:54 EDT 1999


Donald Rozenberg:
 |I would very much like to change the default font when using Tkinter.  I
 |checked the documentation and looked at the code but found nothing.  Any
 |suggestion would be appreciated.

You can use a call of the form:

wgt.option_add( "*font", "lucida 14 bold italic" )

Note that this uses the Tk 8.0 platform-independent font spec format.  Drop
all but the font name (or use platform-dependent fonts) if Tk 8.0 isn't an
option.

Randall
-------------- next part --------------



More information about the Python-list mailing list