summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-12-29 11:28:14 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-12-29 11:28:14 +0000
commit5462bd26c53ed6cddfec2d22a85034db2c786b51 (patch)
tree94b7bd5aa5e97778cb47ff9e54b530f3b6383772 /doc/examples
parent9a97c512ec3e3bfd2b1df17b8ab350b79637780e (diff)
downloadpython-apt-5462bd26c53ed6cddfec2d22a85034db2c786b51.tar.gz
* improved the gui-inst example
Diffstat (limited to 'doc/examples')
-rwxr-xr-xdoc/examples/gui-inst.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py
index 1cb551ef..deb325fe 100755
--- a/doc/examples/gui-inst.py
+++ b/doc/examples/gui-inst.py
@@ -38,10 +38,12 @@ class GuiFetchProgress(gtk.Window, FetchProgress):
def stop(self):
self.hide()
def pulse(self):
- self.label.set_text("Speed: %s/s" % apt_pkg.SizeToStr(self.currentCPS))
+ 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
class TermInstallProgress(InstallProgress, gtk.Window):
def __init__(self):