progress_card
_progress_card
¶
Task progress card widget.
Classes:
| Name | Description |
|---|---|
FXProgressCard |
A card widget showing task/step progress. |
Classes¶
FXProgressCard
¶
FXProgressCard(
parent: Optional[QWidget] = None,
title: str = "Task",
description: Optional[str] = None,
progress: int = 0,
status: Optional[int] = None,
show_percentage: bool = True,
icon: Optional[str] = None,
)
Bases: FXThemeAware, QFrame
flowchart TD
fxgui.fxwidgets._progress_card.FXProgressCard[FXProgressCard]
fxgui.fxstyle.FXThemeAware[FXThemeAware]
fxgui.fxstyle.FXThemeAware --> fxgui.fxwidgets._progress_card.FXProgressCard
click fxgui.fxwidgets._progress_card.FXProgressCard href "" "fxgui.fxwidgets._progress_card.FXProgressCard"
click fxgui.fxstyle.FXThemeAware href "" "fxgui.fxstyle.FXThemeAware"
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 |
|---|---|---|---|
|
Optional[QWidget]
|
Parent widget. |
None
|
|
str
|
Card title. |
'Task'
|
|
Optional[str]
|
Optional description text. |
None
|
|
int
|
Initial progress value (0-100). |
0
|
|
Optional[int]
|
Status icon type (SUCCESS, ERROR, WARNING, INFO, etc.). |
None
|
|
bool
|
Whether to show percentage text. |
True
|
|
Optional[str]
|
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 |
Increment the progress by a given amount. |
reset |
Reset progress to 0. |
set_description |
Set the card description. |
set_progress |
Set the progress value. |
set_status |
Set the status icon. |
set_title |
Set the card title. |
Attributes:
| Name | Type | Description |
|---|---|---|
progress |
int
|
Return the current progress value. |