A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rich.readthedocs.io/en/latest/reference/progress_bar.html below:

rich.progress_bar — Rich 14.0.0 documentation

Rich rich.progress_bar
class rich.progress_bar.ProgressBar(total=100.0, completed=0, width=None, pulse=False, style='bar.back', complete_style='bar.complete', finished_style='bar.finished', pulse_style='bar.pulse', animation_time=None)[source]

Renders a (progress) bar. Used by rich.progress.

Parameters:
  • total (float, optional) – Number of steps in the bar. Defaults to 100. Set to None to render a pulsing animation.

  • completed (float, optional) – Number of steps completed. Defaults to 0.

  • width (int, optional) – Width of the bar, or None for maximum width. Defaults to None.

  • pulse (bool, optional) – Enable pulse effect. Defaults to False. Will pulse if a None total was passed.

  • style (StyleType, optional) – Style for the bar background. Defaults to “bar.back”.

  • complete_style (StyleType, optional) – Style for the completed bar. Defaults to “bar.complete”.

  • finished_style (StyleType, optional) – Style for a finished bar. Defaults to “bar.finished”.

  • pulse_style (StyleType, optional) – Style for pulsing bars. Defaults to “bar.pulse”.

  • animation_time (Optional[float], optional) – Time in seconds to use for animation, or None to use system time.

property percentage_completed: float | None

Calculate percentage complete.

update(completed, total=None)[source]

Update progress with new values.

Parameters:
  • completed (float) – Number of steps completed.

  • total (float, optional) – Total number of steps, or None to not change. Defaults to None.

Return type:

None


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4