summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-06-12 21:08:20 +1200
committerLars Wirzenius <liw@liw.fi>2010-06-12 21:08:20 +1200
commitb55468fe09e8c2d26f3ae6e6573d1e390f52ee8f (patch)
tree9ff86b806c77c5e871ea588661341a2cf43b0b19 /example.py
parent657dfc1efb70a4eb97fc0518e43e13425ac01fd7 (diff)
downloadttystatus-b55468fe09e8c2d26f3ae6e6573d1e390f52ee8f.tar.gz
Add ProgressBar to example program.
Diffstat (limited to 'example.py')
-rw-r--r--example.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/example.py b/example.py
index e56ddf6..e12d0d7 100644
--- a/example.py
+++ b/example.py
@@ -44,6 +44,7 @@ def main():
ts.add(ttystatus.Literal(' ('))
ts.add(ttystatus.PercentDone('done', 'total', decimals=2))
ts.add(ttystatus.Literal(' done) '))
+ ts.add(ttystatus.ProgressBar('done', 'total'))
ts.add(ttystatus.Counter('symlink'))
ts.add(ttystatus.Literal(' symlinks found'))
ts['pathnames'] = pathnames