Initialize and return a progress bar iter
(progress)
| 31 | |
| 32 | |
| 33 | def progress_iter(progress): |
| 34 | """ |
| 35 | Initialize and return a progress bar iter |
| 36 | """ |
| 37 | widgets = [ |
| 38 | progressbar.Percentage(), |
| 39 | " ", |
| 40 | progressbar.Bar(), |
| 41 | " ", |
| 42 | progressbar.Timer(), |
| 43 | " Returns: [", |
| 44 | progressbar.Counter(), |
| 45 | "/{}]".format(progress["minion_count"]), |
| 46 | ] |
| 47 | bar = progressbar.ProgressBar(widgets=widgets, maxval=progress["minion_count"]) |
| 48 | bar.start() |
| 49 | return bar |