Progress Card¶
A card widget displaying progress with title, description, and progress bar.
Preview
FXProgressCard
¶
Bases: ,
A card widget showing task/step progress.
This widget provides a styled card with: - Title and description - Progress bar or circular progress - Status icon - Perfect for pipeline tools and task tracking
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
Parent widget. |
None
|
|
|
Card title. |
'Task'
|
|
|
Optional description text. |
None
|
|
|
Initial progress value (0-100). |
0
|
|
|
Status icon type (SUCCESS, ERROR, WARNING, INFO, etc.). |
None
|
|
|
Whether to show percentage text. |
True
|
|
|
Optional icon name to display next to the title. |
None
|
Signals
progress_changed: Emitted when progress changes. completed: Emitted when progress reaches 100%.
Examples:
>>> card = FXProgressCard(
... title="Rendering",
... description="Frame 50/100",
... progress=50
... )
>>> card.set_progress(75)
Methods:
| Name | Description |
|---|---|
|
Increment the progress by a given amount. |
|
Reset progress to 0. |
|
Set the card description. |
|
Set the progress value. |
|
Set the status icon. |
|
Set the card title. |
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
Return the current progress value. |
increment
¶
Increment the progress by a given amount.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
Amount to increment (default 1). |
1
|
set_description
¶
Set the card description.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
The new description. |
required |
set_progress
¶
Set the progress value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
|
Progress value (0-100). |
required |