euporie.core.widgets.decor

Decorative widgets.

Functions

DummyContainer([width, height])

A minimal container with fixed dimensions.

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] =, ...)

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.

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

Several layouts, one stacked above/under the other.

Label(text[, style, width, ...])

Widget that displays the given text.

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(*args, **kwargs)

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, title: AnyFormattedText | 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.

The container must be in a float.