Skip to content

Commit 8921a7c

Browse files
committed
count by 1 instead of 5 in the simpletest
1 parent ace28ff commit 8921a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/progressbar_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
current_progress = 0.0
2929
while True:
3030
# range end is exclusive so we need to use 1 bigger than max number that we want
31-
for current_progress in range(0, 101, 5):
31+
for current_progress in range(0, 101, 1):
3232
print("Progress: {}%".format(current_progress))
3333
progress_bar.progress = current_progress / 100 # convert to decimal
34-
time.sleep(0.02)
34+
time.sleep(0.01)
3535
time.sleep(0.3)
3636
progress_bar.progress = 0.0
3737
time.sleep(0.3)

0 commit comments

Comments
 (0)