# enaml.widgets.frame

Classes

`Border` | A class for defining a border on a Frame.
`Frame` | A ConstraintsWidget that draws an optional border.

class enaml.widgets.frame.Border

  Bases: `Atom`

  A class for defining a border on a Frame.

  Border instances should be treated as read-only once created.

  style

    The style of the border.

  line_style

    The shadow style applied to the border.

  line_width

    The thickness of the outer border line.

  midline_width

    The thickness of the inner border line. This only has an effect for the ‘sunken’ and ‘raised’ line styles.

class enaml.widgets.frame.Frame(parent=None, **kwargs)

  Bases: `ConstraintsWidget`

  A ConstraintsWidget that draws an optional border.

  This class serves as a base class for widgets such as Container and ScrollArea. It should not normally be used directly by user code.

  border

    The border to apply to the frame. This may not be supported by all toolkit backends.

  proxy

    A reference to the ProxyContainer object.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.