How do I change the text size in a Label widget? (tkinter)

Question:

In python 3.4 using Tkinter, how do I change the text size in a label widget?

So far I have tried

label_one = Label(root, text = 'Hello', size = '50')

and

label_one.config(fontsize='50')

But I am not sure where to start and I can’t find anything saying how to do it.

Asked By: james hughes

||

Answers:

Try passing width=200 as additional paramater when creating the Label.

This should work in creating label with specified width.

If you want to change it later, you can use:

label.config(width=200)

As you want to change the size of font itself you can try:

label.config(font=("Courier", 44))
Answered By: Ashwinee K Jha
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.