Skip to content
AlfonsMittelmeyer edited this page Aug 1, 2017 · 2 revisions

Grid again

If a widget already had a grid layout, but when then an unlayout - grid_remove() - was done:

enter image description here

then the widget isn't visible any more

enter image description here

Pressing the button 'grid'

enter image description here

makes the widget visible at it's former grid position with all it's grid parameters as before.

enter image description here

A typical case for grid_remove() and grid() are alternate gui parts of different size. If it's the same size, also lift() and positioning in trhe same grid cell may be used.

enter image description here

Here a minsize is only defined for the column width. The row height is configured with 0. So labelframe1 or 2 may vanish without something remaining visible.

Here the layout was removed from labelFrame2 combined with grid() for labelFrame1

enter image description here

And here from labelFrame1 combined with grid() for labelFrame2

enter image description here