Skip to content

Push.notification_component

Module constants

  • BLANK_BLOCK

Classes

class _CallbackControl(CompoundElement)

Bases: CompoundElement

Attributes

  • _is_resource_based = True

__init__(self, token, callback, *a, **k)

on_nested_control_element_received(self, control)

on_nested_control_element_lost(self, control)

class _TokenControlElement(ControlElement)

Bases: ControlElement

reset(self)

class NotificationComponent(Component)

Bases: Component

Attributes

  • _default_align_text_fn
  • message_box_layer

__init__(self, default_notification_time, blinking_time, display_lines, *a, **k)

hide_notification(self)

use_single_line(self, line_index, line_slice, align)

use_full_display(self, message_line_index)

_set_message_box_layout(self, layer, align_text_fn)

_create_tasks(self, notification_time)

Functions

adjust_arguments(format_string, original_arguments)

apply_formatting(text_spec)

align_none(width, text)

align_left(width, text)

align_right(width, text)