May 2017
Beginner to intermediate
444 pages
11h 31m
English
Note how we aligned the label, but not the textbox below it. We have to use the sticky property for all the controls we want to left-align. We can do that in a loop, using the winfo_children() and grid_configure(sticky='W') properties, as we did before in the recipe, Using padding to add space around widgets, in this chapter.
The winfo_children() function returns a list of all the children belonging to the parent. This enables us to loop through all the widgets and change their properties.
Read now
Unlock full access