shyft.dashboard.widgets.message_viewer

Classes

MessageViewer([title, rows, width, height, ...])

class shyft.dashboard.widgets.message_viewer.MessageViewer(title: str = 'Notification:', rows=10, width=300, height=200, title_hight=20, sizing_mode: str | None = None, show_time: bool = True, time_zone: str = 'Europe/Oslo', logger: LoggerBox | None = None)[source]

Bases: object

__init__(title: str = 'Notification:', rows=10, width=300, height=200, title_hight=20, sizing_mode: str | None = None, show_time: bool = True, time_zone: str = 'Europe/Oslo', logger: LoggerBox | None = None)[source]

Simple Message Viewer using a Div in the browser

Parameters:
  • title – Title of the MSG box default er Notification:

  • rows – number of msg rows which should be shown

  • width – width of the msg div

  • height – height of the msg div, this will be influenced by rows.

  • title_hight – heigth of the title div default is 20

  • sizing_mode – sizing mode of the divs

receive_info_message(text: str) None[source]
receive_warning_message(text: str) None[source]
add_message(text, style)[source]

Receiver function for messages