euporie.core.widgets.pager
Contain a container for the cell output area.
Functions
|
Typed version of namedtuple. |
|
Add a command to the centralized command system. |
|
Find the shortest conversion path between two formats. |
|
Get the current active (running) Application. |
|
Assign key-bindings to commands based on a dictionary. |
|
Update the key-binding registry. |
Classes
|
Add padding around a container. |
|
Represent a single cell output. |
|
A cell output element which display data. |
|
Turn any callable into a Filter. |
|
Wrapper around any other container that can change the visibility. |
|
Rich output displays. |
|
Container class that dynamically returns any Container. |
|
Several layouts, one stacked above/under the other. ::. |
|
Draw a horizontal or vertical line. |
|
Interactive help pager. |
|
Display pager output. |
|
A cell output element which display data. |
|
A named tuple which describes the state of a pager. |
|
Base class for manipulating paths without I/O. |
- class euporie.core.widgets.pager.Pager(height: AnyDimension | None = None)
Bases:
object
Interactive help pager.
A pager which displays information at the bottom of a tab.
- property state: euporie.core.widgets.pager.PagerState | None
Return the pager’s current state.
- class euporie.core.widgets.pager.PagerOutput(json: dict[str, Any], parent: OutputParent | None)
Bases:
euporie.core.widgets.cell_outputs.CellOutput
Display pager output.
- property data: dict[str, Any]
Return dictionary of mime types and data for this output.
This generates similarly structured data objects for markdown cells and text output streams.
- Returns
JSON dictionary mapping mimes type to representation data.
- property element: euporie.core.widgets.cell_outputs.CellOutputElement
Get the element for the currently selected mime type.
- get_element(mime: str) euporie.core.widgets.cell_outputs.CellOutputElement
Return the currently displayed cell element.
- make_element(mime: str) CellOutputElement
Create a container for the pager output mime-type if it doesn’t exist.
- Parameters
mime – The mime-type to make the container for
- Returns
A
PagerOutputDataElement
container for the currently selected mime-type.
- class euporie.core.widgets.pager.PagerOutputDataElement(mime: str, data: dict[str, Any], metadata: dict, parent: OutputParent | None)
Bases:
euporie.core.widgets.cell_outputs.CellOutputDataElement
A cell output element which display data.
- property data: Any
Return the control’s display data.
- class euporie.core.widgets.pager.PagerState(code: str, cursor_pos: int, response: dict)
Bases:
NamedTuple
A named tuple which describes the state of a pager.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.