[pygtk] Gtk.Box, homogeneous and expand
Jérôme
jerome at jolimont.fr
Thu Jan 19 05:14:29 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.
There's a specific widget that can be used to pack buttons making them have
all the same size.
http://developer.gnome.org/gtk3/stable/GtkButtonBox.html
This is just what I wanted.
(It only works for buttons.)
--
Jérôme
More information about the pygtk
mailing list