hello stdout worldthe notion of attaching widgets to containers turns out to be at the core of layouts in tkinter before we go into more detail on that topicthoughlet' get small widget resizing revisitedclipping earlierwe saw how to make widgets expand along with their parent windowby passing expand and fill options to the pack geometry manager now that we have window with more than one widgeti can let you in on one of the more useful secrets in the packer as rulewidgets packed first are clipped last when window is shrunk that isthe order in which you pack items determines which items will be cut out of the display if it is made too small widgets packed later are cut out first for examplefigure - shows what happens when the gui window is shrunk interactively figure - gui gets small try reordering the label and button lines in the script and see what happens when the window shrinksthe first one packed is always the last to go away for instanceif the label is packed lastfigure - shows that it is clipped firsteven though it is attached to the topside attachments and packing order both impact the overall layoutbut only packing order matters when windows shrink here are the changed linesbutton(wintext='hello'command=greetingpack(side=leftbutton(wintext='quit'command=win quitpack(side=rightlabel(wintext='hello container world'pack(side=topfigure - label packed lastclipped first tkinter keeps track of the packing order internally to make this work scripts can plan ahead for shrinkage by calling pack methods of more important widgets first for instanceon the upcoming tkinter tourwe'll meet code that builds menus and toolbars at the top and bottom of the windowto make sure these are lost last as window is shrunkthey are packed firstbefore the application components in the middle graphical user interfaces