Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | guiutils |
include "progress.g"
A progress bar is used to track the progress of some task. It has a ``meter'' with a sliding line that advances across the window as the task executes. The progress bar will normally disappear when the task has reached its maximum value. The progress bar can optionally estimate the time remaining in the task by assuming that the remaining portion will complete at the same rate as the portion completed to date.
If X windows is not available (have_gui() == F) then this tool just does no-op's.
- include "progress.g" - bar := progress(-100, 100, 'main title', 'subtitle') - bar.update(-75) - bar.update(-50) - ... - bar.update(100) # GUI window is removed