Screens
elva.widgets.screens
Textual screens for ELVA apps.
Classes:
-
Dashboard–Screen for displaying session information.
-
InputScreen–A plain modal screen with a single input field.
-
ErrorScreen–Modal screen displaying an exception message.
Dashboard
Bases: Screen
Screen for displaying session information.
It features a ConfigView widget for
displaying the current configuration parameters as well as
an AwarenessView widget
showing the active clients in the current session.
Methods:
-
compose–Hook adding child widgets.
-
key_escape–Hook executed on pressing the
Esckey.
compose()
InputScreen
Bases: ModalScreen
A plain modal screen with a single input field.
Methods:
-
compose–Hook adding child widgets.
-
on_input_submitted–Hook executed on an
Input.Submittedmessage. -
key_escape–Hook executed on pressing the
Esckey.
compose()
on_input_submitted(event)
Hook executed on an Input.Submitted message.
Parameters:
-
event(Message) –the message containing the submitted value.
ErrorScreen(exc, *args, **kwargs)
Bases: ModalScreen
Modal screen displaying an exception message.
Parameters:
-
exc(str) –the exception message to display.
-
args(tuple, default:()) –positional arguments passed to
ModalScreen -
kwargs(dict, default:{}) –keyword arguments passed to
ModalScreen
Methods:
-
compose–Hook arranging child widgets.
-
on_button_pressed–Hook called on a button pressed event.
-
on_key–Hook called on a pressed key.
-
on_mouse_up–Hook called on a released mouse button.
Attributes:
Source code in src/elva/widgets/screens.py
exc = exc
instance-attribute
The exception message to display.