SourceClass ProgressBar
from egui import ProgressBarclass ProgressBar:A simple progress bar.
See also: egui.Spinner.
Methods§
Sourcedef animate(self, /, animate: bool) -> ProgressBar§
Whether to display a loading animation when progress < 1.
Note that this will cause the UI to be redrawn.
Defaults to False.
If egui.ProgressBar.corner_radius and egui.ProgressBar.animate are used simultaneously, the animation is not
rendered, since it requires a perfect circle to render correctly. However, the UI is still
redrawn.
Sourcedef corner_radius(self, /, corner_radius: CornerRadius) -> ProgressBar§
Set the rounding of the progress bar.
If egui.ProgressBar.corner_radius and egui.ProgressBar.animate are used simultaneously, the animation is not
rendered, since it requires a perfect circle to render correctly. However, the UI is still
redrawn.
Sourcedef desired_height(self, /, desired_height: float) -> ProgressBar§
The desired height of the bar. Will use the default interaction size if not set.
Sourcedef desired_width(self, /, desired_width: float) -> ProgressBar§
The desired width of the bar. Will use all horizontal space if not set.
Sourcedef fill(self, /, fill: Color32) -> ProgressBar§
The fill color of the bar.
def rounding(self, /, corner_radius: CornerRadius) -> ProgressBar§
def show(self, /, ui: Ui) -> Response§
Sourcedef show_percentage(self, /) -> ProgressBar§
Show the progress in percent on the progress bar.
Sourcedef text(self, /, text: Any) -> ProgressBar§
A custom text to display on the progress bar.