diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-29 11:28:14 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-29 11:28:14 +0000 |
| commit | 5462bd26c53ed6cddfec2d22a85034db2c786b51 (patch) | |
| tree | 94b7bd5aa5e97778cb47ff9e54b530f3b6383772 | |
| parent | 9a97c512ec3e3bfd2b1df17b8ab350b79637780e (diff) | |
| download | python-apt-5462bd26c53ed6cddfec2d22a85034db2c786b51.tar.gz | |
* improved the gui-inst example
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rwxr-xr-x | doc/examples/gui-inst.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index c421b58e..6c9d56ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,7 +8,7 @@ python-apt (0.6.16) unstable; urgency=low now instead of a single one * apt_pkg.Cdrom.Add() returns a boolean now, CdromProgress has totalSteps - -- + -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 22 Dec 2005 10:21:51 +0100 python-apt (0.6.15) unstable; urgency=low 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): |
