enaml.widgets.scroll_area

Classes

ScrollArea

A Frame which displays a single child in a scrollable area.

class enaml.widgets.scroll_area.ScrollArea(parent=None, **kwargs)[source]

Bases: Frame

A Frame which displays a single child in a scrollable area.

A ScrollArea has at most a single child Container widget.

horizontal_policy

The horizontal scrollbar policy.

vertical_policy

The vertical scrollbar policy.

widget_resizable

Whether to resize the scroll widget when possible to avoid the need for scrollbars or to make use of extra space.

hug_width

A scroll area is free to expand in width and height by default.

hug_height

How strongly a widget hugs it’s height hint. This is equivalent to the constraint:

(height == hint) | hug_height
proxy

A reference to the ProxyScrollArea object.

scroll_widget()[source]

Get the scroll widget child defined on the area.

The scroll widget is the last Container child.

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.

border

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

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.