| ttk::progressbar(3tk) | Tk Themed Widget | ttk::progressbar(3tk) |
ttk::progressbar - Provide progress feedback
ttk::progressbar pathName ?options?
A ttk::progressbar widget shows the status of a long-running operation. They can operate in two modes: determinate mode shows the amount completed relative to the total amount of work to be done, and indeterminate mode provides an animated display to let the user know that something is happening.
If the value of -orient is horizontal a text string can be displayed inside the progressbar. This string can be configured using the -anchor, -font, -foreground, -justify, -text and -wraplength options. If the value of -orient is vertical then these options are ignored.
-anchor -class -cursor -font -foreground -justify -style -takefocus -text -wraplength
See the ttk_widget manual entry for details on the standard options.
Command-Line Name: -length Database Name: length Database Class: Length
Command-Line Name: -maximum Database Name: maximum Database Class: Maximum
Command-Line Name: -mode Database Name: mode Database Class: Mode
Command-Line Name: -orient Database Name: orient Database Class: Orient
Command-Line Name: -phase Database Name: phase Database Class: Phase
Command-Line Name: -value Database Name: value Database Class: Value
Command-Line Name: -variable Database Name: variable Database Class: Variable
In addition to the standard cget, configure, identify element, instate, state and style commands (see ttk::widget), progressbar widgets support the following additional commands:
The class name for a ttk::progressbar is TProgressbar.
TProgressbar styling options configurable with ttk::style are:
-background color
-bordercolor color
-darkcolor color
-lightcolor color
-maxphase
Some options are only available for specific themes.
See the ttk::style manual page for information on how to configure ttk styles.
| 8.5 | Tk |