Show Simple Content
The Mycroft GUI Framework has a number of common methods for displaying standard simple content types.
Text
Display simple strings of text.
Arguments:
text (str): Main text content. It will auto-paginate
title (str): A title to display above the text content.
override_idle (boolean, int):
True: Takes over the resting page indefinitely
(int): Delays resting page for the specified number of seconds.
override_animations (boolean):
True: Disables showing all platform skill animations.
False: 'Default' always show animations.
Static Image
Display a static image such as a jpeg or png.
Arguments:
url (str): Pointer to the image
caption (str): A caption to show under the image
title (str): A title to display above the image content
fill (str): Fill type - supports:
'PreserveAspectFit',
'PreserveAspectCrop',
'Stretch'
override_idle (boolean, int):
True: Takes over the resting page indefinitely
(int): Delays resting page for the specified number of seconds.
override_animations (boolean):
True: Disables showing all platform skill animations.
False: 'Default' always show animations.
Animated Image
Display an animated image such as a gif.
Arguments:
url (str): Pointer to the .gif image
caption (str): A caption to show under the image
title (str): A title to display above the image content
fill (str): Fill type - supports:
'PreserveAspectFit',
'PreserveAspectCrop',
'Stretch'
override_idle (boolean, int):
True: Takes over the resting page indefinitely
(int): Delays resting page for the specified number of seconds.
override_animations (boolean):
True: Disables showing all platform skill animations.
False: 'Default' always show animations.
HTML Page
Display a local HTML page.
Arguments:
html (str): HTML text to display
resource_url (str): Pointer to HTML resources
override_idle (boolean, int):
True: Takes over the resting page indefinitely
(int): Delays resting page for the specified number of seconds.
override_animations (boolean):
True: Disables showing all platform skill animations.
False: 'Default' always show animations.
Remote URL
Display a webpage.
Arguments:
url (str): URL to render
override_idle (boolean, int):
True: Takes over the resting page indefinitely
(int): Delays resting page for the specified number of seconds.
override_animations (boolean):
True: Disables showing all platform skill animations.
False: 'Default' always show animations.
Last updated