pyopticon.built_in_widgets.title_widget module

class pyopticon.built_in_widgets.title_widget.TitleWidget(parent_dashboard, title, font_size)

Bases: MinimalWidget

A simple widget containing only text, intended for making a big-text title for a dashboard. Uses the MinimalWidget superclass, since all of the GenericWidget machinery is unnecessary.

Parameters:
  • parent_dashboard (pyopticon.dashboard.PyOpticonDashboard) – The dashboard object to which this device will be added

  • title (str) – The text to be displayed within this widget, called ‘title’ because it’s likely to be the title of the entire dashboard.

  • font_size (int) – The size of font to be used in the text, as an integer.