edifice.ProgressBar#
- class edifice.ProgressBar(value, min_value=0, max_value=100, format=None, orientation=<Orientation.Horizontal: 1>, **kwargs)[source]#
Bases:
QtWidgetElement[QProgressBar]Progress bar widget.
Underlying Qt Widget QProgressBar.
A progress bar is used to give the user an indication of the progress of an operation.
Props
All props from
QtWidgetElementplus:- Parameters:
value (
int) – The progress frommin_valuetomax_value.min_value (
int) – The starting progress.max_value (
int) – The ending progress.format (
Optional[str]) – The descriptive text format. See format.orientation (
Orientation) – The orientation of the bar, eitherHorizontalorVertical. See Orientation.
If
min_valueandmax_valueboth are set to 0, the bar shows a busy indicator instead of a percentage of steps.Methods
__init__(value[, min_value, max_value, ...])register_ref(reference)Registers provided
Referenceto this Element.set_key(key)Set the key of an
Element.Attributes
childrenThe children of this Element.
propsThe props of this Element.
underlyingThe underlying QWidget, which may not exist if this Element has not rendered.