from tkinter import *
window = Tk()
x = Button(text="a", padx=20)
y = Button(text="aaaaa", padx=20)
x.grid(padx=20)
y.grid(padx=20)
window.mainloop()
Despite having the same padding values, x
and y
buttons have the same size and are displayed at different distances from the left border of the window.
In addition, What unit are the padx
values?