Questions tagged [progress-bar]

A progress bar is a component in a graphical user interface used to convey the progress of a task, such as a download or file transfer.

A progress bar is a component in a graphical user interface used to convey the progress of a task, such as a download or file transfer. The graphic is often displayed as a bar which illustrates the task percentage complete. Descriptive textual information may accompany the bar.

enter image description here

Typically, determinate progress bars use a linear function, such that the advancement of a progress bar is directly proportional to the amount of work that has been completed. However, varying disk, memory, processor, bandwidth and other factors complicate this estimate. Consequently, progress bars often exhibit non-linear behaviors, such as acceleration, deceleration, and pauses. These behaviors, coupled with humans' non-linear perception of time passing, produces a variable perception of how long progress bars take to complete. However, this also means progress bars can be designed to "feel" faster. Finally, the graphical design of progress bars has also been shown to influence humans' perception of duration

Indeterminate progress bars, on the other hand, provide a simple animation (often in the for of a spinning ring or an horglass).
These are meant to indicate that an operation is currently running, but it's not known when it will be over.

They may look similar to this:

enter image description here

7560 questions
544
votes
47 answers

Python Progress Bar

How do I use a progress bar when my script is doing some task that is likely to take time? For example, a function which takes some time to complete and returns True when done. How can I display a progress bar during the time the function is being…
user225312
  • 126,773
  • 69
  • 172
  • 181
540
votes
42 answers

How to add a progress bar to a shell script?

When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed. For example, copying a big file, opening a big tar file. What ways do you recommend to add progress bars to…
Tom Feiner
  • 20,656
  • 20
  • 48
  • 51
218
votes
10 answers

Multiprocessing : use tqdm to display a progress bar

To make my code more "pythonic" and faster, I use multiprocessing and a map function to send it a) the function and b) the range of iterations. The implanted solution (i.e., calling tqdm directly on the range tqdm.tqdm(range(0, 30))) does not work…
SciPy
  • 5,412
  • 4
  • 18
  • 18
203
votes
16 answers

How to Create a circular progressbar in Android which rotates on it?

I am trying to create a rounded progressbar. This is what I want to achieve There is a grey color background ring. On top of it, a blue color progressbar appears which moves in a circular path from 0 to 360 in 60 or whatever amount of…
178
votes
23 answers

How to change color in circular progress bar?

I am using circular progress bar on Android. I wish to change the color of this. I am using "?android:attr/progressBarStyleLargeInverse" style. So how to change the color of progress bar. How to custom the style? Furthermore, what is the…
mooongcle
  • 3,987
  • 5
  • 33
  • 42
176
votes
10 answers

File upload progress bar with jQuery

I am trying to implement an AJAX file upload feature in my project. I am using jQuery for this; my code submits the data using AJAX. I also want to implement a file upload progress bar. How can I do this? Is there any way to calculate how much has…
Eddard Stark
  • 3,575
  • 8
  • 35
  • 51
161
votes
18 answers

Command line progress bar in Java

I have a Java program running in command line mode. I would like to display a progress bar, showing the percentage of job done. The same kind of progress bar you would see using wget under unix. Is this possible?
g andrieu
  • 2,081
  • 3
  • 14
  • 10
161
votes
13 answers

Output to the same line overwriting previous output?

I am writing an FTP downloader. Part of to the code is something like this: ftp.retrbinary("RETR " + file_name, process) I am calling function process to handle the callback: def process(data): print os.path.getsize(file_name)/1024, 'KB / ',…
Kristian
  • 1,751
  • 2
  • 12
  • 9
148
votes
8 answers

CSS Progress Circle

I have searched this website to find progress bars, but the ones I have been able to found show animated circles that go to the full 100%. I would like it to stop at certain percentages like in the screenshot below. Is there any way I can do that…
Adam GunShy Said
  • 1,497
  • 2
  • 10
  • 3
142
votes
7 answers

How to get progress from XMLHttpRequest

Is it possible to get the progress of an XMLHttpRequest (bytes uploaded, bytes downloaded)? This would be useful to show a progress bar when the user is uploading a large file. The standard API doesn't seem to support it, but maybe there's some…
Pete
141
votes
19 answers

Why is tqdm printing to a newline instead of updating the same line?

I'm working on a small command-line game in python where I am showing a progress bar using the tqdm module. I listen for user input using the msvcrt module to interrupt the progress. Once interrupted, the user can restart by entering 'restart' into…
Pieter Helsen
  • 1,561
  • 2
  • 10
  • 9
137
votes
8 answers

Custom Drawable for ProgressBar/ProgressDialog

Reading the limited documentation that Google has provided, I get the feeling that it is possible to change the look (drawable) of a ProgressBar/ProgressDialog by simply creating a new style an assigning it to the style property of the ProgressBar.…
Sam
  • 2,473
  • 3
  • 18
  • 29
126
votes
4 answers

Using tqdm progress bar in a while loop

I am making a code that simulates a pawn going around a monopoly board a million times. I would like to have a tqdm progress bar that is updated every time a turn around the board is achieved. Below is my current code. I am using a while loop which…
Benjamin Chausse
  • 1,437
  • 2
  • 10
  • 20
119
votes
4 answers

How to use WinForms progress bar?

I want to show progress of calculations, which are performing in external library. For example if I have some calculate method, and I want to use it for 100000 values in my Form class I can write: public partial class Form1 : Form { public…
Dmytro
  • 16,668
  • 27
  • 80
  • 130
116
votes
16 answers

Python progress bar and downloads

I have a Python script that launches a URL that is a downloadable file. Is there some way to have Python display the download progress as oppose to launching the browser?
user1607549
  • 1,499
  • 3
  • 13
  • 17
1
2 3
99 100