[pygtk] Gtk.Box, homogeneous and expand
Jérôme
jerome at jolimont.fr
Fri Jan 6 02:50:36 WST 2012
Wed, 04 Jan 2012 00:17:19 +0100
Pietro Battiston a écrit:
> Yes, you're right, strictly speaking the docs are wrong: widgets are
> _allocated_ the same size, they wont't _be_ the same size. That said, it
> is clear that that sentence from the doc _couldn't_ be right, because a
> widget has the "power" to not expand and hence the Box couldn't
> determine its true size anyway: it can only decide how much space to
> allocate to it.
It is now much clearer to me now what "homogeneous", "expand" and "fill" mean.
I understand the logic of it all and why my logic did not conform to it.
I still think the doc is misleading. Especially the GTK3 doc, where the
difference between expand and fill is unclear (to me) :
http://readthedocs.org/docs/python-gtk-3-tutorial/en/latest/layout.html#boxes
Thank you both for taking the time to answer.
--
Jérôme
More information about the pygtk
mailing list