We'll have better control of our GUI layout if we embed frames within frames. This is what we will do in this recipe.
Aligning GUI widgets by embedding frames within frames
Getting ready
The dynamic behavior of Python and its GUI modules can create challenges when we want to make our GUI really look the way we want it to. In this recipe, we will embed frames within frames to get more control of our layout. This will establish a stronger hierarchy among the different UI elements, making the visual appearance easier to achieve.
We will continue using the GUI we created in the previous recipe, Dynamically expanding the GUI using widgets.
Here, we will create a top-level frame that will contain other frames and widgets. This...