The Gtk.AspectFrame is useful when you want
pack a widget so that it can resize but always retains
the same aspect ratio. For instance, one might be
drawing a small preview of a larger image. Gtk.AspectFrame
derives from Gtk.Frame, so it can draw a label and
a frame around the child. The frame will be
“shrink-wrapped” to the size of the child.
xalign (float) – Horizontal alignment of the child within the allocation of
the Gtk.AspectFrame. This ranges from 0.0 (left aligned)
to 1.0 (right aligned)
yalign (float) – Vertical alignment of the child within the allocation of
the Gtk.AspectFrame. This ranges from 0.0 (top aligned)
to 1.0 (bottom aligned)
xalign (float) – Horizontal alignment of the child within the allocation of
the Gtk.AspectFrame. This ranges from 0.0 (left aligned)
to 1.0 (right aligned)
yalign (float) – Vertical alignment of the child within the allocation of
the Gtk.AspectFrame. This ranges from 0.0 (top aligned)
to 1.0 (bottom aligned)