Closed hugodahl closed 3 years ago
This will be addressed as part of the changes in #21
The property name for the value will be more instinctive as value
. Setting it would then look like
progress_bar = ProgressBar(..., min=20, max=50, ...)
# Some work happens . . .
# Update the progress bar to the new value...
progress_bar.progress = 42 # Let the control figure out "73.33%"
To make using the progress bar easier for users, it would be nice to have the ability to specify a minimum and maximum value for the control (which represent the values 0% and 100%). This would remove the need to compute the percentage from the user, particularly when their range values don't neatly fit in a 0..1, 0..10, 0..100 and other such "easy" ranges.
Example