mirror of
https://github.com/verigak/progress.git
synced 2025-12-08 19:33:24 +00:00
Refactor
This commit is contained in:
@@ -32,7 +32,7 @@ for singleton in (Counter, Countdown, Stack, Pie):
|
||||
sleep(0.03)
|
||||
print()
|
||||
|
||||
bar = IncrementalBar('Random', backtrack=True, suffix='')
|
||||
bar = IncrementalBar('Random', suffix='%(index)d')
|
||||
for i in range(100):
|
||||
bar.goto(randint(0, 100))
|
||||
sleep(0.1)
|
||||
|
||||
Reference in New Issue
Block a user