adilseb...@gmail.com wrote:
> from your explanation:
>
> 1)"stacking order": is like stack and queue for data's collection.
Similar to "stack" - nothing like queue.
Think of a set of old-style transparency sheets for an old-style
overhead projector. If you put three transparencies one on top of the
other, you get a combined image of the three on screen.
Stacking order refers to the order in which the transparencies overlay
each other. The top item is on top, the bottom item is on the bottom
(lowest level) and the others are in between.
>
> 2)in comparison with "HTML" and "CSS":
> -packing order: is like packing HTML's elements without any formating
> - => " pack" command without options ( just packing Tk's widgets)
There is no "packing order". There is "stacking order" which is
equivalent to CSS's z-index property.
The geometry management relates to laying the items out in 2-D space on
a plane so they fit inside the boundaries of a box on the plane.
Stacking order adds a third dimension (so you now have a 3-D layout of
widgets) where some of the 2-D planes (the widgets) actually are above
(or below) and overlap other 2-D planes (other widgets).
> -geometry management: is like the " Float" option in CSS => "pack"
> - command with options
No. Geometry management is more like automatic specification of width,
height, and some of the "display" properties.
> -"lower" and "raise" commands work with widgets organized by geometry
> - management ("pack" command with option)
Yes, but only in the sense that a widget is invisible until it is
managed by a geometry manager. Lower and raise allow you to directly
control the CSS "z-index" property (should you wish to do so).
> - the problem solved by "lower" and "raise" commands is when tha
> - parent widget don't have enough space to hold its childrens widgets
> - managed by "geometry management", but what if they are just stacked
> - without enough space?
No and no. Lower and raise decide who occludes (covers up) whom when
their boundaries overlap (i.e., exactly what CSS's z-index property
handles).