The ttk.Progressbar widget shows the status of a long-running operation. It can operate in two modes: 1) the determinate mode which shows the amount completed relative to the total amount of work to be done and 2) the indeterminate mode which provides an animated display to let the user know that work is progressing.

Options

This widget accepts the following specific options:

Option Description
orient One of “horizontal” or “vertical”. Specifies the orientation of the progress bar.
length Specifies the length of the long axis of the progress bar (width if horizontal, height if vertical).
mode One of “determinate” or “indeterminate”.
maximum A number specifying the maximum value. Defaults to 100.
value The current value of the progress bar. In “determinate” mode, this represents the amount of work completed. In “indeterminate” mode, it is interpreted as modulo maximum; that is, the progress bar completes one “cycle” when its value increases by maximum.
variable A name which is linked to the option value. If specified, the value of the progress bar is automatically set to the value of this name whenever the latter is modified.
phase Read-only option. The widget periodically increments the value of this option whenever its value is greater than 0 and, in determinate mode, less than maximum. This option may be used by the current theme to provide additional animation effects.

ttk.Progressbar

class tkinter.ttk.``Progressbar``start(interval=None)
Begin autoincrement mode: schedules a recurring timer event that calls Progressbar.step() every interval milliseconds. If omitted, interval defaults to 50 milliseconds.
step(amount=None)
Increments the progress bar’s value by amount.
amount defaults to 1.0 if omitted.
stop()
Stop autoincrement mode: cancels any recurring timer event initiated by Progressbar.start() for this progress bar.