forked from wolph/python-progressbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunicode.py
More file actions
30 lines (21 loc) · 905 Bytes
/
unicode.py
File metadata and controls
30 lines (21 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf-8 -*-
import time
import progressbar
def test_empty_arrows():
# You may need python 3.x to see this correctly
widgets = ['Arrows: ', progressbar.AnimatedMarker(markers=u'←↖↑↗→↘↓↙')]
pbar = progressbar.ProgressBar(widgets=widgets)
for i in pbar((i for i in range(24))):
time.sleep(0.001)
def test_filled_arrows():
# You may need python 3.x to see this correctly
widgets = ['Arrows: ', progressbar.AnimatedMarker(markers=u'◢◣◤◥')]
pbar = progressbar.ProgressBar(widgets=widgets)
for i in pbar((i for i in range(24))):
time.sleep(0.001)
def test_wheels():
# You may need python 3.x to see this correctly
widgets = ['Wheels: ', progressbar.AnimatedMarker(markers=u'◐◓◑◒')]
pbar = progressbar.ProgressBar(widgets=widgets)
for i in pbar((i for i in range(24))):
time.sleep(0.001)