gtk.frame.Frame is a widget that surrounds its child with a decorative
frame and an optional label.
If present, the label is drawn inside the top edge of the frame.
The horizontal position of the label can be controlled with
gtk.frame.Frame.setLabelAlign.
gtk.frame.Frame clips its child. You can use this to add rounded corners
to widgets, but be aware that it also cuts off shadows.
GtkFrame as GtkBuildable
The gtk.frame.Frame implementation of the gtk.buildable.Buildable interface supports
placing a child in the label position by specifying “label” as the
“type” attribute of a <child> element. A normal content child can
be specified without specifying a <child> type attribute.
An example of a UI definition fragment with GtkFrame:
gtk.frame.Frame has a main CSS node with name “frame”, which is used to draw the
visible border. You can set the appearance of the border using CSS properties
like “border-style” on this node.
gtk.frame.Frame is a widget that surrounds its child with a decorative frame and an optional label.
If present, the label is drawn inside the top edge of the frame. The horizontal position of the label can be controlled with gtk.frame.Frame.setLabelAlign.
gtk.frame.Frame clips its child. You can use this to add rounded corners to widgets, but be aware that it also cuts off shadows.
GtkFrame as GtkBuildable
The gtk.frame.Frame implementation of the gtk.buildable.Buildable interface supports placing a child in the label position by specifying “label” as the “type” attribute of a <child> element. A normal content child can be specified without specifying a <child> type attribute.
An example of a UI definition fragment with GtkFrame:
CSS nodes
gtk.frame.Frame has a main CSS node with name “frame”, which is used to draw the visible border. You can set the appearance of the border using CSS properties like “border-style” on this node.
Accessibility
gtk.frame.Frame uses the gtk.types.AccessibleRole.Group role.