class documentation

A simple alert dialog class for displaying messages to the user.

Method __del__ Clean up resources and deinitialize LVGL.
Method __init__ Initialize the Alert with drawing context and styling.
Method clear Clear the display with the background color.
Method draw Render the alert message on the display.
Method text.setter Set the alert text.
Instance Variable background_color Undocumented
Instance Variable display Undocumented
Instance Variable is_circular Undocumented
Instance Variable text_color Undocumented
Instance Variable use_lvgl Undocumented
Property text Get the current alert text.
Instance Variable _lvgl_alert Undocumented
Instance Variable _text Undocumented
def __del__(self):

Clean up resources and deinitialize LVGL.

def __init__(self, draw, text: str, text_color: int = 65535, background_color: int = 0):

Initialize the Alert with drawing context and styling.

Parameters
draw:DrawThe drawing context to render the alert.
text:strThe message to display in the alert.
text_color:intThe color of the text. Defaults to 0xFFFF.
background_color:intThe background color of the alert. Defaults to 0x0000.
def clear(self):

Clear the display with the background color.

def draw(self, title: str):

Render the alert message on the display.

Parameters
title:strThe title text to display at the top.
def text(self, value: str):

Set the alert text.

Parameters
value:strThe new alert text.
background_color: int =

Undocumented

display =

Undocumented

is_circular =

Undocumented

text_color: int =

Undocumented

use_lvgl =

Undocumented

@property
text: str =

Get the current alert text.

_lvgl_alert =

Undocumented

_text =

Undocumented