gtk.aspect_frame
Module for [AspectFrame] class
Types 3
classAspectFrame : gtk.frame.Frame
The #GtkAspectFrame 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. #GtkAspectFrame derives from #GtkFrame, so it can draw a label and a frame around the child. The frame will be “shrink-wrapped” to the size of the child.
CSS nodes
GtkAspectFrame uses a CSS node with name frame.
Methods
AspectFrame self()Returns `this`, for use in `with` statements.AspectFrameGidBuilder builder()Get builder for [gtk.aspect_frame.AspectFrame] Returns: New builder objectbool obeyChild() @propertyvoid obeyChild(bool propval) @propertyfloat ratio() @propertyvoid ratio(float propval) @propertyfloat xalign() @propertyvoid xalign(float propval) @propertyfloat yalign() @propertyvoid yalign(float propval) @propertyvoid set(float xalign, float yalign, float ratio, bool obeyChild)Set parameters for an existing #GtkAspectFrame.Fluent builder for [gtk.aspect_frame.AspectFrame]
Methods