base_screen
anomaly_match_ui.screens.base_screen
¶
Base screen class for the modular UI architecture.
BaseScreen(app)
¶
Bases: ABC
Abstract base class for all UI screens.
Each screen owns a widget tree built lazily on first access.
Navigation between screens is handled via the parent app reference.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
AnomalyMatchApp
|
The parent application instance used for navigation. |
required |
Source code in anomaly_match_ui/screens/base_screen.py
widget
property
¶
Lazy-built root widget for this screen.
build()
abstractmethod
¶
Build and return the screen's root widget.
Returns:
| Type | Description |
|---|---|
Widget
|
The root ipywidget for this screen. |
on_enter()
¶
on_leave()
¶
navigate_to(screen_name, **kwargs)
¶
Navigate to another screen via the app.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
screen_name
|
str
|
The registered name of the target screen. |
required |
**kwargs
|
Any
|
Extra keyword arguments forwarded to the screen factory. |
{}
|