44

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.

martineau
  • 119,623
  • 25
  • 170
  • 301
james hughes
  • 597
  • 2
  • 5
  • 11

1 Answers1

83

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))
Ashwinee K Jha
  • 9,187
  • 2
  • 25
  • 19