bencher.results.composable_container.composable_container_panel

Classes

ComposableContainerPanel

A base class for renderer backends. A composable renderer

Module Contents

class bencher.results.composable_container.composable_container_panel.ComposableContainerPanel

Bases: bencher.results.composable_container.composable_container_base.ComposableContainerBase

A base class for renderer backends. A composable renderer

name: str | None = None
var_name: str | None = None
var_value: str | None = None
width: int | None = None
background_col: str | None = None
horizontal: bool | None = None
__post_init__() None
append(obj)

Add an object to the container. The relationship between the objects is defined by the ComposeType

Parameters:

obj (Any) – Object to add to the container

render()

Return a representation of the container that can be composed with other render() results. This function can also be used to defer layout and rending options until all the information about the container content is known. You may need to override this method depending on the container. See composable_container_video as an example.

Returns:

Visual representation of the container that can be combined with other containers

Return type:

Any