status_format
¶
This module controls how the status of the pump is presented to the user in the UI.
- turboctl.ui.status_format.palette¶
A colour palette for an
AdvancedTUI
.
- turboctl.ui.status_format.red_button¶
This is displayed by
urwid.Text
widgets as a red circle, if the widgets are used in anAdvancedTUI
initialized withpalette
.
- turboctl.ui.status_format.green_button¶
Similar to
red_button
, but green instead of red.
- turboctl.ui.status_format.status_screen(status)¶
Return a status screen for the
display
of anAdvancedTUI
.- Parameters:
status – A
Status
object, the contents of which will be displayed on the screen.- Returns:
A nested iterable of strings, which will be interpreted by
urwid.Text
as coloured text. The format is explained here.