0

I need to centralize my labels (dinamically) but I want to control its position in y axis, so I've tried pack. The problem is: .pack() doesn't allow me to add a vertical space >only< above the label, just bellow AND above.

I've tried this code:

l1 = Label(janela,text="Testando1",bg='green')
l1.pack(ipady=20)

l2 = Label(janela,text="Testando2")
l2.pack()

And get this:

enter image description here

Look that ipady adds some spaces above and bellow the label, and I need to add spaces only above.

I've tried to read the documentation but I didn't find anything useful for this problem.

I want something like that:

enter image description here

It doesn't count because I jerry-rigged with .place() to get this result.

0 Answers0