Skip to main content

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

NameDescriptionTypeDefault
currentThe current progress value.float50
totalThe total value representing 100% progress.float100
textText displayed alongside the progress bar.str''
full_widthWhether the progress bar should take up the full width of its container.boolFalse