How to adjust the vw crankshaft end play

How to set the font of the Tkinter text widget

  1. How-To's
  2. Python Tkinter How-To's
  3. How to set the font of the Tkinter text widget

Created: June-03, 2020 | Updated: March-30, 2021

  1. Set the font for the Tkinter widget
  2. Set font for Tkinter widget with
  3. Tkinter font families

The method of the Tkinter widget specifies the properties of, such as the font. This could be either a or a Tkinter- object.

Set the font for the Tkinter widget

She puts on the font, in italics with the size.

Set font for Tkinter widget with

We could also set the font with an object of the module.

The constructor has options like

  1. - Font family, such as,.
  2. - Font size (in points)
  3. - Thick, right?
  4. - Slanted font: or
  5. - Underline the font, or
  6. - Strikethrough the writing, or

The advantage of using objects instead of tuples is that the same object can be assigned to different widgets and updated programmatically using the method. All widgets that have the same object are updated to the new style.

It updates the weighting from to.

Tkinter font families

For your convenience, we list all the font families available in Tkinter (Tkinter 3, Windows OS). You can also list the font families in your work environment with the following codes,

Related article - Tkinter Text

  • How to clear the contents of Tkinter text fields
  • How to set the text of Tkinter text widget with one button
  • Related Article - Tkinter Font

  • How to change the font size of the Tkinter labels
  • How to clear the contents of Tkinter text fields