euporie.core.widgets.decor

Decorative widgets.

Functions

add_setting(name, default, help_, description)

Register a new config item.

get_app()

Get the current active (running) Application.

to_filter(bool_or_filter)

Accept both booleans and Filters as input and turn it into a Filter.

Classes

Border(body, border, style, str] =, show_borders)

Draw a border around any container.

ConditionalContainer(content, filter)

Wrapper around any other container that can change the visibility.

DiBool([top, right, bottom, left])

A tuple of four bools with directions.

DropShadow([amount])

A transparent container which makes the background darker.

DynamicContainer(get_container)

Container class that dynamically returns any Container.

Float(content[, top, right, bottom, left, ...])

Float for use in a FloatContainer.

FloatContainer(content, floats[, modal, ...])

A FloatContainer which uses :py`BoundedWritePosition`s.

HSplit(children[, window_too_small, align, ...])

Several layouts, one stacked above/under the other.

Shadow(body)

Draw a shadow underneath/behind this container.

VSplit(children[, window_too_small, align, ...])

Several layouts, one stacked left/right of the other.

Window([content, width, height, z_index, ...])

Container that holds a control.

class euporie.core.widgets.decor.Border(body: AnyContainer, border: GridStyle | None = ┌─┬┐ ││ ├─┼┤ └─┴┘, style: str | Callable[[], str] = 'class:border', show_borders: DiBool | None = None)

Bases: object

Draw a border around any container.

add_style(extra: str) Callable[[], str]

Return a function which adds a style string to the border style.

class euporie.core.widgets.decor.Shadow(body: AnyContainer)

Bases: object

Draw a shadow underneath/behind this container.

This is a globally configurable version of the prompt_toolkit.widows.base.Shadow class.