Create a new Python module and place the following code into this module:
This creates the following GUI:
While not amazingly impressive as of yet, this widget adds another very powerful tool to our GUI design toolkit. It comes with its own limitations in the minimalist example above (for example, we can neither reposition the GUI nor does it show the entire GUI title).
While we used the grid layout manager for simpler GUIs in the previous recipes, we can use a simpler layout manager, and pack is one of them.