Progressbar
- From: "Sandra Derbring" <sandra derbring gmail com>
- To: gtk-list gnome org
- Subject: Progressbar
- Date: Thu, 15 May 2008 15:58:26 +0200
Hello,
I have a problem with a progressbar. I want, for every file I look into, for the bar to show some progress, so that while you wait for the program to finish, the whole time can see the bar moving. When I implement it, all that happens is that the bar gets filled first after the program's finished. How do I make it show during the process?
self.progressbar = gtk.ProgressBar()
self.progressbar.show()
self.step = 1/len(list)
for file in list:
self.x += self.step
#do smth with file
self.progressbar.set_fraction(self.x)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]