Using frame objects

TkInter provides another object we'll use named frame. FramesĀ are containers we can place information in and thatĀ and provide additional organization. We'll have two frames in our final interface. The first is an input frame containing all of the objects that a user will interact with, and the second is our output frame that will display all of the information processed by the script. In the final code of this chapter, the two frame objects will be children to the root window and act as parents to the Label, Entry, and/or Button objects within them.

Another benefit of the frame object is that each one can use its own geometry manager. Since each parent object can use only a single geometry manager, this allows us to leverage several different managers within our overall GUI.

In our script, we'll use the pack() manager to organize the frames in the root window and the grid() manager to organize elements within each frame.