mirror of
https://github.com/verigak/progress.git
synced 2025-12-08 19:33:24 +00:00
@@ -11,6 +11,7 @@ from progress.bar import (Bar, ChargingBar, FillingSquaresBar,
|
||||
from progress.spinner import (Spinner, PieSpinner, MoonSpinner, LineSpinner,
|
||||
PixelSpinner)
|
||||
from progress.counter import Counter, Countdown, Stack, Pie
|
||||
from progress.colors import bold
|
||||
|
||||
|
||||
def sleep():
|
||||
@@ -32,6 +33,10 @@ for bar_cls in (IncrementalBar, PixelBar, ShadyBar):
|
||||
bar.next()
|
||||
sleep()
|
||||
|
||||
bar = IncrementalBar(bold('Corolored'), color='green')
|
||||
for i in bar.iter(range(200)):
|
||||
sleep()
|
||||
|
||||
for spin in (Spinner, PieSpinner, MoonSpinner, LineSpinner, PixelSpinner):
|
||||
for i in spin(spin.__name__ + ' %(index)d ').iter(range(100)):
|
||||
sleep()
|
||||
|
||||
Reference in New Issue
Block a user