Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: progress - Constructor Up: guiutils - Module Previous: tracewindow.view_named_function - Function


progress - Tool



Package display
Module guiutils


Postscript file available

Display visually the progress of some task

include "progress.g"



Description

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.



Example
- include "progress.g"
- bar := progress(-100, 100, 'main title', 'subtitle')
- bar.update(-75)
- bar.update(-50) 
- ...
- bar.update(100)      # GUI window is removed




next up previous contents index
Next: progress - Constructor Up: guiutils - Module Previous: tracewindow.view_named_function - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15