FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-progressbar/tests/unicode.py at develop · jhargis/python-progressbar · GitHub
jhargis
/
python-progressbar
Public
forked from
wolph/python-progressbar
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-progressbar
/
tests
/
unicode.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (21 loc) · 905 Bytes
Breadcrumbs
python-progressbar
/
tests
/
unicode.py
Copy path
File metadata and controls
30 lines (21 loc) · 905 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
)
Back
|
FazBrowse Home
|
New Git URL