# Class GTK2.Frame

Inheritance graph

Description

  The frame widget is a Bin that surrounds its child with a decorative frame and an optional label. If present, the label is drawn in a gap in the top side of the frame. The position of the label can be controlled with set_label_align().

  Used to visually group objects.

  `GTK2.Frame("Title")->add(GTK2.Label("Contents"))`

  `GTK2.Frame()->add(GTK2.Label("Contents"))`

  `GTK2.Frame()->add(GTK2.Label("Contents"))->set_shadow_type(GTK2.SHADOW_IN)`

  Properties: string label GTK2.Widget label-widget float label-xalign float label-yalign int shadow int shadow-type

Inherit Bin

  `inherit GTK2.Bin : Bin`

Method create

  `GTK2.Frame GTK2.Frame(`string`|`mapping` `label_or_props`)`

Description

  Create a new W(Frame) widget.