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
QtWidgetElement
plus:- Parameters:
value (
int
) – The progress frommin_value
tomax_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, eitherHorizontal
orVertical
. See Orientation.
If
min_value
andmax_value
both 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
Reference
to this Element.set_key
(key)Set the key of an
Element
.Attributes
children
The children of this Element.
props
The props of this Element.
underlying
The underlying QWidget, which may not exist if this Element has not rendered.