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.Textwidgets as a red circle, if the widgets are used in anAdvancedTUIinitialized 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
displayof anAdvancedTUI.- Parameters:
status – A
Statusobject, the contents of which will be displayed on the screen.- Returns:
A nested iterable of strings, which will be interpreted by
urwid.Textas coloured text. The format is explained here.