progress_panel
anomaly_match_ui.widgets.progress_panel
¶
Reusable progress bar with status label and ETA tracking.
ProgressPanel(bar_color=ESA_GREEN)
¶
A progress bar with a status label and a waiting spinner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bar_color
|
str
|
Initial color of the progress bar. |
ESA_GREEN
|
Source code in anomaly_match_ui/widgets/progress_panel.py
set_color(color)
¶
Change the progress bar color.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
color
|
str
|
CSS color string. |
required |
start(message)
¶
Reset the bar for a new run and spin until the first progress.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Status text to display while waiting. |
required |
stop()
¶
update(value, message)
¶
Update progress value and status message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
float
|
Progress fraction between 0.0 and 1.0. |
required |
message
|
str
|
Status text to display. |
required |