enable.scrolled module

class enable.scrolled.Scrolled(component, **traits)[source]

Bases: enable.container.Container

A Scrolled acts like a viewport with scrollbars for positioning the view position. Rather than subclassing from viewport, it delegates to one.

freeze_scroll_bounds()[source]

Prevents the scroll bounds on the scrollbar from updating until unfreeze_scroll_bounds() is called. This is useful on components with view-dependent bounds; when the user is interacting with the scrollbar or the viewport, this prevents the scrollbar from resizing underneath them.

sb_height()[source]

Returns the standard scroll bar height

sb_width()[source]

Returns the standard scroll bar width

unfreeze_scroll_bounds()[source]

Allows the scroll bounds to be updated by various trait changes. See freeze_scroll_bounds().

update_bounds()[source]
update_from_viewport()[source]

Repositions the scrollbars based on the current position/bounds of viewport_component.