as codedshrinking the pack window clips items packed lastshrinking the grid window shrinks all labels and entries together unlike grid ' default behavior (try this on your ownresizing in grids now that 've shown you what these windows doi need to explain how they do it we learned in how to make widgets expand with packwe use expand and fill options to increase space allocations and stretch into themrespectively to make expansion work for widgets arranged by gridwe need to use different protocols rows and columns must be marked with weight to make them expandableand widgets must also be made sticky so that they are stretched within their allocated grid cellheavy rows and columns with packwe make each row expandable by making the corresponding frame expandablewith expand=yes and fill=both gridders must be bit more specificto get full expandabilitycall the grid container' rowconfigure method for each row and its columnconfigure for each column to both methodspass weight option with value greater than zero to enable rows and columns to expand weight defaults to zero (which means no expansion)and the grid container in this script is just the top-level window using different weights for different rows and columns makes them grow at proportionally different rates sticky widgets with packwe use fill options to stretch widgets to fill their allocated space horizontally or verticallyand anchor options to position widgets within their allocated tkinter tourpart