[sldev] Re: layout managers (Callum Lerwick)

Argent Stonecutter secret.argent at gmail.com
Mon Jul 30 14:14:08 PDT 2007


> The last remaining grid layout users are deprecated or dead,  
> classic MacOS, and classic windows. WinForms, OSX, and most X11  
> toolkits support constraint based layouts.

Actually, you can have constraint-based layout that operates on a  
grid, and sometimes that's what you need. That's why Tk has three  
layout managers: "Place", which is absolute-position based; "Pack",  
which is a very powerful 'classic' constraint-based layout manager;  
and "Grid", which is a constraint-based grid layout manager. You can  
define the width of a column in the grid based on its contents, as a  
percentage of the total width of the space the grid has available,  
absolute numbers of pixels, and with the contents in its cell  
anchored on any side with or without padding.



More information about the SLDev mailing list