euporie.core.bars.status

Define a status-bar widget.

Functions

get_app()

Get the current active (running) Application.

ptk_to_container(container)

Make sure that the given object is a Container.

to_container(container)

Monkey-patch to_container to collect container status functions.

to_filter(bool_or_filter)

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

to_formatted_text(value[, style, auto_convert])

Convert the given value (which can be formatted text) into a list of text fragments.

Classes

ConditionalContainer(content, filter)

Wrapper around any other container that can change the visibility.

FastDictCache(get_value[, size])

Fast, lightweight cache which keeps at most size items.

FormattedTextControl([text, style, ...])

Control that displays formatted text.

StatusBar([extra_filter, default])

A status bar which shows the status of the current tab.

StatusContainer(body, status)

A container which allows attaching a status function.

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

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

WeakKeyDictionary([dict])

Mapping class that references keys weakly.

Window(*args, **kwargs)

Container that holds a control.

WindowAlign(*values)

Alignment of the Window content.

class euporie.core.bars.status.StatusBar(extra_filter: FilterOrBool = True, default: StatusBarFields | None = None)

Bases: object

A status bar which shows the status of the current tab.

class euporie.core.bars.status.StatusContainer(body: AnyContainer, status: Callable[[], StatusBarFields | None])

Bases: object

A container which allows attaching a status function.

euporie.core.bars.status.to_container(container: AnyContainer) Container

Monkey-patch to_container to collect container status functions.