mbdlyb_ui.utils

Copyright (c) 2023 - 2026 TNO-ESI All rights reserved.

Classes

Status

Represent the ready, computing, and error states of an operation.

Functions

show_name(name)

Render a refreshable heading for an element name.

status(status)

Render a refreshable indicator for a status.

Module Contents

class mbdlyb_ui.utils.Status(*args, **kwds)

Bases: enum.Enum

Represent the ready, computing, and error states of an operation.

print_ui()

Render the icon or spinner corresponding to this status.

COMPUTING
ERROR
READY
mbdlyb_ui.utils.show_name(name: str)

Render a refreshable heading for an element name.

Parameters:

name – Name to display.

mbdlyb_ui.utils.status(status: Status)

Render a refreshable indicator for a status.

Parameters:

status – State whose icon or spinner should be displayed.