A Label in a Frame in a window won't stretch, why?
问题 I would like to display a window with a single Frame and a Label in the Frame which would stretch to the whole width of the window The following code import Tkinter as tk root = tk.Tk() root.geometry("100x100") # first column of root will stretch root.columnconfigure(0, weight=1) # a frame in root upper_frame = tk.Frame(root) # first column of upper_frame will stretch upper_frame.columnconfigure(0, weight=1) upper_frame.grid(row=0, column=0) # a label in upper_frame, which should stretch