0
我正在使用全屏程序,並且.columnconfigure可以工作,但.row配置不能?.rowconfigure不擴展?
from Tkinter import *
root = Tk()
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.overrideredirect(1)
root.geometry("%dx%d+0+0" % (w, h))
root.bind("<Escape>",quit)
root.config(bg="black")
root.columnconfigure(1,weight=1)
root.columnconfigure(2,weight=1)
root.columnconfigure(3,weight=1)
root.columnconfigure(4,weight=1)
root.rowconfigure(1,weight=1)
root.rowconfigure(2,weight=1)
root.rowconfigure(3,weight=1)
root.rowconfigure(4,weight=1)
Label(text="hey").grid(row=0, column=1,sticky="WENS")
Label(text="hey").grid(row=0, column=2,sticky="WENS")
Label(text="hey").grid(row=0, column=3,sticky="WENS")
Label(text="hey").grid(row=0, column=4,sticky="WENS")
root.mainloop()