gtk.Framea bin with a decorative frame and optional
label.Synopsisgtk.Framegtk.Bingtk.FramelabelNoneset_labellabelget_labelset_label_widgetlabel_widgetget_label_widgetset_label_alignxalignyalignget_label_alignset_shadow_typetypeget_shadow_typeAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.Container
+-- gtk.Bin
+-- gtk.Frame
Implemented Interfacesgtk.Frame
implements
gtk.Buildablegtk.Frame Propertiesgtk.Object Propertiesgtk.Widget Propertiesgtk.Container Properties
"label"Read-WriteThe text of the frame's label"label-widget"Read-WriteThe widget to display in place of the usual frame
label."label-xalign"Read-WriteThe horizontal alignment of the label widget in the
range of 0.0 to 1.0"label-yalign"Read-WriteThe vertical alignment of the decoration within the
label widget height in the range of 0.0 to 1.0"shadow-type"Read-WriteThe style of the frame's border; one of:
gtk.SHADOW_NONE, gtk.SHADOW_IN,
gtk.SHADOW_OUT, gtk.SHADOW_ETCHED_IN,
gtk.SHADOW_ETCHED_OUT
gtk.Frame Style Propertiesgtk.Widget Style Propertiesgtk.Frame Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal Prototypesgtk.Widget Signal Prototypesgtk.Container Signal PrototypesDescriptionThe gtk.Frame widget is a
gtk.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().Constructorgtk.FramelabelNonelabel :a string to use as the label text or None if no
label is required.Returns :a new frame widgetCreates a new gtk.Frame widget with
the label text specified by label. If
label is None no label is
created.Methodsgtk.Frame.set_labelset_labellabellabel :a string to be used as the label
textThe set_label() method sets the text of
the label as specified by label. If
label is None the current label is
removed.gtk.Frame.get_labelget_labelReturns :the text in the label, or
None if there is no label widget or the label widget is
not a gtk.Label.The get_label() method returns the text
in the label widget. If there is no label widget or the label widget is not
a gtk.Label the
method returns None.gtk.Frame.set_label_widgetset_label_widgetlabel_widgetlabel_widget :the new label widgetThe set_label_widget() method set the
label widget (usually to something other than a gtk.Label widget) for
the frame. This widget will appear embedded in the top edge of the frame as
a title.gtk.Frame.get_label_widgetget_label_widgetReturns :the label widget, or None if
there is no label widget.The get_label_widget() method retrieves
the label widget for the frame. See set_label_widget().gtk.Frame.set_label_alignset_label_alignxalignyalignxalign :the horizontal alignment of the label widget
along the top edge of the frame (in the range of 0.0 to
1.0)yalign :the vertical alignment of the decoration with
respect to the label widget (in the range 0.0 to 1.0)The set_label_align() method sets the
alignment of the frame's label widget and decoration (defaults are 0.0 and
0.5) as specified by xalign and
yalign. The xalign value
specifies the fraction of free horizontal space that is allocated to the
left of the label widget. The yalign value specifies
the fraction of label widget height above the decoration.gtk.Frame.get_label_alignget_label_alignReturns :a tuple containing the x and y alignments of
the frame's label widgetThe get_label_align() method returns a
tuple containing the X and Y alignment of the frame's label widget and
decoration. See the set_label_align()
method.gtk.Frame.set_shadow_typeset_shadow_typetypetype :a shadow type:
gtk.SHADOW_NONE, gtk.SHADOW_IN,
gtk.SHADOW_OUT, gtk.SHADOW_ETCHED_IN,
gtk.SHADOW_ETCHED_OUTThe set_shadow_type() method sets the
frame's shadow type to the value of type. The type
must be one of: gtk.SHADOW_NONE,
gtk.SHADOW_IN, gtk.SHADOW_OUT,
gtk.SHADOW_ETCHED_IN,
gtk.SHADOW_ETCHED_OUTgtk.Frame.get_shadow_typeget_shadow_typeReturns :the current shadow type of the
frame.The get_shadow_type() method retrieves the shadow type of the
frame; one of: gtk.SHADOW_NONE,
gtk.SHADOW_IN, gtk.SHADOW_OUT,
gtk.SHADOW_ETCHED_IN,
gtk.SHADOW_ETCHED_OUT. See set_shadow_type().