The Grid geometry manager

In the previous exercise, we added three different widgets to the root window using the Pack geometry manager and the pack() method. We didn't actively organize these widgets but the Pack manager automatically arranged them in the vertical position. While designing a meaningful interface, you need to arrange these widgets in the appropriate order. If you look at the previous output window, it is really difficult to identify the function of each widget or their association with others. In order to design an intuitive GUI, you also need to describe these widgets using the appropriate labels. As a solution, Tkinter provides an alternative way to organize your widgets that is called Grid geometry manager.

The Grid geometry ...

Get Python Programming for Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.