class documentation

A view managed by the ViewManager.

Method __init__ Initialize the view with its name and callbacks.
Method run Run the view's per-frame callback.
Method start Start the view and mark it active.
Method stop Stop the view and mark it inactive.
Class Variable __slots__ Undocumented
Instance Variable active Whether the view is currently active.
Instance Variable name The name of the view.
Method __alert Display an alert message.
Instance Variable _run Undocumented
Instance Variable _start Undocumented
Instance Variable _stop Undocumented
def __init__(self, name: str, run: callable, start: callable, stop: callable):

Initialize the view with its name and callbacks.

Parameters
name:strThe name of the view.
run:callableFunction called every frame.
start:callableFunction called when the view is created.
stop:callableFunction called when the view is destroyed.
def run(self, view_manager):

Run the view's per-frame callback.

Parameters
view_manager:ViewManagerThe manager that owns this view.
def start(self, view_manager) -> bool:

Start the view and mark it active.

Parameters
view_manager:ViewManagerThe manager that owns this view.
Returns
boolTrue if the view started successfully, False otherwise.
def stop(self, view_manager):

Stop the view and mark it inactive.

Parameters
view_manager:ViewManagerThe manager that owns this view.
__slots__: tuple[str, ...] =

Undocumented

active: bool =

Whether the view is currently active.

name: str =

The name of the view.

def __alert(self, exception, view_manager):

Display an alert message.

Parameters
exception:ExceptionThe exception to display.
view_manager:ViewManagerThe manager to show the alert on.
_run =

Undocumented

_start =

Undocumented

_stop =

Undocumented