In Tkinter, How does padx differ when used as argument within a widget and an argument in the grid function?

后端 未结 0 1461
天涯浪人
天涯浪人 2021-02-15 00:47
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.mainlo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题