btb.libdisplay package

Submodules

btb.libdisplay.display module

synopis:

A simple display API used to display short strings.

class btb.libdisplay.display.Display(bg_color='grey55', fg_color='blue', font='System 150', enable_progress=False)[source]

Bases: object

Provides display to write strings to.

Parameters:
  • bg_color (str, optional) – Screen background color, defaults to red

  • fg_color (str, optional) – Screen foreground color, defaults to green

  • font (str, optional) – String font, defaults to System 80

loading_bar(progress, bar) None[source]

Writes string to the screen.

Parameters:
  • progress (int) – Percentage, in the form of a number spanning zero to one hundred, to set the progress bar to.

  • bar (bool) – True to update the top bar, false to update the bottom bar.

Returns:

None

write(text) None[source]

Writes string to the screen.

Parameters:

text (str) – Text to write to the screen

Returns:

None

Module contents