I would like to know a good way to make a GUI progress bar. I'm using python, Glade/GTK. An example of a program I'd like to get more than just a pulse bar. Something that could give the user a more accurate way to know the progress. The program I'm trying to capture this for is cdparanoia, but would like to know how to do this in general for other programs like wget. Important to note on these two programs is the the info is output on stderr.
I should mention that when doing a
output = p.stderr.read(1)
print output
Doesn't show that the text progress bar is showing. It is almost like it is treating a non-interactive shell differently. There are no carriage returns (\r) like I thought it would be doing.
Codings is as such:
import subprocess, shlex, gtk
command = 'cdparanoia -w -Z 1- - | sox -t wav - "my disk.flac"'
p = subprocess(shlex.split(command), stderr=subprocess.PIPE)
gui = gtk.Builder()
gui.add_from_file("pulsebar.glade")
#do magic here to make a good pulsebar
Gratefully, Narnie