Example #1
0
    def pulse(self):
        FetchProgress.pulse(self)
        self.label.set_text("Speed: %s/s" % apt_pkg.SizeToStr(self.currentCPS))
	#self.progressbar.set_fraction(self.currentBytes/self.totalBytes)
	while gtk.events_pending():
		gtk.main_iteration()
        return True
Example #2
0
 def pulse(self):
     FetchProgress.pulse(self)
     self.label.set_text("Speed: %s/s" % apt_pkg.SizeToStr(self.currentCPS))
     #self.progressbar.set_fraction(self.currentBytes/self.totalBytes)
     while gtk.events_pending():
         gtk.main_iteration()
     return True
Example #3
0
 def pulse(self):
     FetchProgress.pulse(self)
     if self.currentCPS > 0:
         s = "%sB/s %s" % (apt_pkg.SizeToStr(int(self.currentCPS)),
                           apt_pkg.TimeToStr(int(self.eta)))
     else:
         s = "[Working..]"
     self.status_label.setText(s)
     self.pbar.setValue(int(self.percent))
     QtGui.qApp.processEvents()
     return True