pythonuser-interfacetkintertkinter-label

Add internal padding to tkinter label while using .place()


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)

Solution

  • You can do something like this:

    l = Label(text = "Something", bg = "blue")
    l.pack(ipadx = 1) # change 1 to whichever value you want