How to resize text in shortcut widgets, python tkinter

In python 3.4 using Tkinter, how to resize text in shortcut widgets?

So far i tried

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

and

 label_one.config(fontsize='50') 

But I'm not sure where to start, and I can’t find anything talking about how to do this.

+8
python label tkinter
source share
1 answer

Try passing width=200 as an extra parameter when creating the label.

This should work when creating a label with the specified width.

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

 label.config(width=200) 

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

 label.config(font=("Courier", 44)) 
+21
source share

All Articles