ProgressOutput
Progress bar output widget for displaying completion status.
Examples
Basic Usage
This example runs a form with a single page containing the widget
Example Code
from time import sleep
from abstra.forms import ProgressOutput, run
def show_progress_bar(state):
for i in range(1, 11):
sleep(1) # Simulating a time-consuming process
yield [ProgressOutput(current=i, total=10)]
run([show_progress_bar])
Parameters
Name | Description | Type | Default |
---|---|---|---|
current | The current progress value. | float | 50 |
total | The total value representing 100% progress. | float | 100 |
text | Text displayed alongside the progress bar. | str | '' |
full_width | Whether the progress bar should take up the full width of its container. | bool | False |