summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-15 15:29:57 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-15 15:29:57 +0100
commit9123ef968f09aab58746679dd86d837ea1566aa3 (patch)
tree0444dae03ef22a67879b5a0f39f8fdd0fdfc4876
parentc54f82a88e9592afd6bd0232f50a121acb1238e9 (diff)
downloadpython-ttystatus-9123ef968f09aab58746679dd86d837ea1566aa3.tar.gz
Fix usage of ProgressBar in example
-rw-r--r--example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.py b/example.py
index 5814fbc..9401704 100644
--- a/example.py
+++ b/example.py
@@ -47,7 +47,7 @@ def main():
ts.add(ttystatus.Literal(' done) '))
ts.add(ttystatus.RemainingTime('done', 'total'))
ts.add(ttystatus.Literal(' '))
- ts.add(ttystatus.ProgressBar('done', 'total'))
+ ts.add(ttystatus.ProgressBar('done', 'total', 16))
ts['pathnames'] = pathnames
ts['done'] = 0
ts['total'] = len(pathnames)