1

Is there a way to add internal padding to label while using place() geometry manager?

I have tried ipadx option is not there...

Label(text = "Something", bg = "blue").place(x = 0, y = 0)
Wankiet
  • 18
  • 3
Prakhar Parikh
  • 177
  • 2
  • 13

1 Answers1

1

You can do something like this:

l = Label(text = "Something", bg = "blue")
l.pack(ipadx = 1) # change 1 to whichever value you want
leaves
  • 111
  • 1
  • 12
  • When you call `.pack(...)`, the `.place(...)` is ignored so there is no point to having both of them. – TheLizzard Jul 04 '21 at 13:15
  • I edited it, I just added it in because .pack() was in the question too. – leaves Jul 04 '21 at 13:22
  • @leaves thanks for answering... my application is quite long and I have to use place() everywhere... so I can't try your solution – Prakhar Parikh Jul 05 '21 at 07:14
  • @PrakharParikh instead of using the ```.place(...)``` method or ```.pack(...)``` method you can use ```.grid(...)``` if you want to position your widgets as well as add internal padding – leaves Jul 05 '21 at 14:01