-
Notifications
You must be signed in to change notification settings - Fork 0
ProgressBar
Wire name progress
A bar showing how far along something is, or that it is merely busy.
p=new progress minimum=0 maximum=100 value=40
| Property | Type | Default | Meaning |
|---|---|---|---|
caption |
string | — | Optional overlay text. |
indeterminate |
flag | false |
Show indeterminate busy animation. |
maximum |
int | — | Maximum value. |
minimum |
int | — | Minimum value. |
value |
int | — | Current progress value. |
Plus the common properties.
The defaults are minimum=0, maximum=100, value=0.
progress emits no events.
A progress bar reports nothing. It is driven by the application setting
value, and shows what it is told.
A value outside minimum…maximum is clamped rather than refused, and the
clamp is re-applied when the range changes:
new progress minimum=0 maximum=10 value=99
-> value = 10
new progress value=50 minimum=0 maximum=10
-> value = 10
The second line sets value before the range that bounds it, and still ends
at 10 — setting maximum re-clamps what is already there. Unlike
ListView's selected, the order does not change the outcome.
indeterminate replaces the filled bar with a busy animation, for work whose
extent is not known. value, minimum and maximum are ignored while it is
set.
caption is an overlay format, not a static label — it is the text drawn
over the bar, and may contain the format placeholders the bar substitutes.
Leave it unset for the default.
A progress bar takes no focus and is skipped by Tab.
Give it an acc_name where the surrounding text does not say what is
progressing; the bar reports its value, not its purpose.
KittyTK — image/tty Trinket Kit · MIT licensed · alpha, 0.1.x
Repository · Issues · Support on ko-fi
Sibling projects: PurfecTerm (terminal emulator) · mew (text editor) · PawScript (language)
Getting Started
Installation Building from Source Running a Display Host Your First Application Examples
Protocol
Protocol Overview Object Model Properties and Values Events Templates and Aliases Common Properties Introspection Transports and Security
Clients
Go Client Python Client C Client
Application Objects
Application · MenuBar · Window · MessageBox
Output Trinkets
Label · ProgressBar · StatusBar
Input Trinkets
TextInput · Editor · Terminal
Button · CheckBox · RadioButton
ListView · ComboBox · TreeView
Layout Trinkets
TabTrinket · Panel
ScrollArea · MDIPane
Separator · Spacer · Splitter
Other Trinkets
Layout Helpers