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 |
Initialize the view with its name and callbacks.
| Parameters | |
name:str | The name of the view. |
run:callable | Function called every frame. |
start:callable | Function called when the view is created. |
stop:callable | Function called when the view is destroyed. |
Run the view's per-frame callback.
| Parameters | |
viewViewManager | The manager that owns this view. |
Start the view and mark it active.
| Parameters | |
viewViewManager | The manager that owns this view. |
| Returns | |
bool | True if the view started successfully, False otherwise. |
Stop the view and mark it inactive.
| Parameters | |
viewViewManager | The manager that owns this view. |
Display an alert message.
| Parameters | |
exception:Exception | The exception to display. |
viewViewManager | The manager to show the alert on. |