Skip to content

ProgressBar

A widget that displays progress on a time-consuming task.

  • Focusable
  • Container

Examples

Progress Bar in Isolation

The example below shows a progress bar in isolation. It shows the progress bar in:

  • its indeterminate state, when the total progress hasn't been set yet;
  • the middle of the progress; and
  • the completed state.

IndeterminateProgressBar ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--%--:--:--  s Start ^p palette

IndeterminateProgressBar ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━39%00:00:07  s Start ^p palette

IndeterminateProgressBar ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━100%--:--:--  s Start ^p palette

from textual.app import App, ComposeResult