...

/

Putting Widgets Into the GUI

Putting Widgets Into the GUI

Learn about the different ways you can add widgets into the GUI window.

Overview of a GUI program

The window that opens when you run a GUI program is a container, meaning the section that contains the widgets (buttons, text areas, etc.). A frame is a container that you can put inside a window, or in another frame.

Methods for arranging widgets

There are three methods for arranging widgets into the main window and frames:

  1. pack
  2. grid
  3. place

Only one of these methods should be used in any given window or frame.

Complex layouts can also be created by putting multiple frames into the window and/or into other frames and using different layouts for the window and each frame.

Pack frame

The ...