Progressbar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux