fig label frame widget with space the grid_configure(function enables us to modify the ui elements before the main loop displays them soinstead of hardcoding values when we first create widgetwe can work on our layout and then arrange spacing towards the end of our filejust before the gui is created the winfo_children(function returns list of all the children belonging to the buttons_frame variable this enables us to loop through them and assign the padding to each label how widgets dynamically expand the gui java introduced the concept of dynamic gui layout management in comparisonvisual development idessuch as vs netlayout the gui in visual manner and basically hardcode the and coordinates of the ui elements using tkinterthis dynamic capability creates both an advantage and little bit of challenge because sometimes our gui dynamically expands when we would rather it not be so dynamic we are using the grid layout manager widget and it lays out our widgets in zero based grid this is very similar to an excel spreadsheet on data base table the following is an example of grid layout manager with two rows and three columns