euporie.core.widgets.status_bar

Define a status-bar widget.

Functions

add_setting(name, default, help_, description)

Register a new config item.

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([content, width, height, z_index, ...])

Container that holds a control.

WindowAlign(value[, names, module, ...])

Alignment of the Window content.

class euporie.core.widgets.status_bar.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.widgets.status_bar.StatusContainer(body: AnyContainer, status: Callable[[], StatusBarFields | None])

Bases: object

A container which allows attaching a status function.

euporie.core.widgets.status_bar.to_container(container: AnyContainer) Container

Monkey-patch to_container to collect container status functions.