Skip to content
Snippets Groups Projects
Commit f0cc3f52 authored by Sander de Snoo's avatar Sander de Snoo
Browse files

changed test code

parent f62b24a0
No related branches found
Tags v1.4.3
No related merge requests found
......@@ -16,10 +16,15 @@ class progress_bar():
if __name__ == '__main__':
import time
p = progress_bar(50)
for i in range(50):
time.sleep(0.01)
p += 1
p.close()
\ No newline at end of file
p = progress_bar(500)
try:
for i in range(500):
if i < 20:
time.sleep(0.9)
else:
time.sleep(i%20*0.1)
p += 1
# if i % 50 == 0:
# print()
finally:
p.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment