to make all of these grow along with their windowthoughwe also need to make the container frame expandablewidgets expand beyond their initial packer arrangement only if all of their parents expandtoo here are the changes in gui pywin frame(win pack(side=topexpand=yesfill=bothbutton(wintext='hello'command=greetingpack(side=leftfill=ylabel(wintext='hello container world'pack(side=topbutton(wintext='quit'command=win quitpack(side=rightexpand=yes,fill=xwhen this code runsthe frame is assigned the entire top side of its parent as before (that isthe top parcel of the root window)but because it is now marked to expand into unused space in its parent and to fill that space both waysit and all of its attached children expand along with the window figure - shows how figure - gui gets big with an expandable frame using anchor to position instead of stretch and as if that isn' flexible enoughthe packer also allows widgets to be positioned within their allocated space with an anchor optioninstead of filling that space with fill the anchor option accepts tkinter constants identifying all eight points of the compass (nnenwsetc and center as its value ( anchor=nwit instructs the packer to position the widget at the desired position within its allocated spaceif the space allocated for the widget is larger than the space needed to display the widget adding multiple widgets