Tkinter - Arranging Widgets with Pack, Grid and Place, for Python




Tkinter allows 3 different methods to allow you to position widgets. Pack is the simplest which places widgets in the order they are packed. Grid is the next simplest which allows widgets to be placed in a grid arrangement. Place is the most complex but allows the absolution locations to be set.

Here is an example of each.
    8.1 Pack - This places widgets in the order they are created.

    8.2 Grid  - This places widgets in a flexible grid that is automatically sized.

    8.3 Place  - This places the widgets in absolute positions giving full control to the designer.







Related Sections

Python - Learn the python from the basics up. This fast track example code course will get you creating powerful python programs in no time.
Tkinter - Learn the key features of the tkinter to allow you to create user interfaces for your python programs.


Must read articles

Tkinter - Combo Box - This is a short example showing how to use combo boxes in a GUI.
Tkinter - Radio Buttons - A short example of how to create a GUI with radio buttons.
Tkinter _ Canvas - Canvas allows for a range of shapes to be plotted, such as circles, squares, lines and labels.
Tkinter - Pack vs Grid vs Place - tkinter provides flexibility in how the layout the widgets. 
Pickle - The pickle library allows a program to save data in a binary file.
Python - List Comprehension - Create powerful list comprehension expressions.
Python - Generators - Learn about generator statements.
Python - Data types - The learn about the key datatypes in the python language.