There's more...

The tkinter.font module includes a Font class, which can be reused over multiple widgets. The main advantage of modifying a font instance is that it affects all the widgets that share it with the font option.

Working with the Font class is very similar to using font descriptors. For example, this snippet creates a 18-pixel Courier bold font:

from tkinter import font
courier_18 = font.Font(family="Courier", size=18, weight=font.BOLD)

To retrieve or change an option value, you can use the cget and configure methods as usual:

family = courier_18.cget("family")
courier_18.configure(underline=1)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset