Unify the output of progress bars
authorNikos Skalkotos <skalkoto@grnet.gr>
Tue, 24 Apr 2012 14:40:46 +0000 (17:40 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Tue, 24 Apr 2012 14:40:46 +0000 (17:40 +0300)
image_creator/kamaki_wrapper.py

index ffe0158..e3c249e 100644 (file)
@@ -53,6 +53,10 @@ def progress(message):
 
         progressbar = Bar(msg.ljust(MSG_LENGTH))
         progressbar.max = n
+        progressbar.fill = '#'
+        progressbar.bar_prefix = ' ['
+        progressbar.bar_suffix = '] '
+
         for _ in range(n):
             yield
             progressbar.next()