diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-02-01 15:23:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-24 15:54:53 +0000 |
commit | fb62c54e13e875dd81e0b5220c54a7753b4d5fa2 (patch) | |
tree | 972358b18fd82b11e83ded04384fc74bce040622 | |
parent | 7f8aa691c52547ee5f1272a7931ca9cccd1a120a (diff) | |
download | ast2050-yocto-poky-fb62c54e13e875dd81e0b5220c54a7753b4d5fa2.zip ast2050-yocto-poky-fb62c54e13e875dd81e0b5220c54a7753b4d5fa2.tar.gz |
bitbake/progress: add method to pulse the progress bar
When we're running a long operation with indeterminate duration it's useful
to use the gtk.ProgressBar's pulse method to show that something is happening
but we don't know how long it will take.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/progress.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/progress.py b/bitbake/lib/bb/ui/crumbs/progress.py index 36eca38..ce3a6c3 100644 --- a/bitbake/lib/bb/ui/crumbs/progress.py +++ b/bitbake/lib/bb/ui/crumbs/progress.py @@ -15,3 +15,7 @@ class ProgressBar(gtk.Dialog): def update(self, x, y): self.progress.set_fraction(float(x)/float(y)) self.progress.set_text("%2d %%" % (x*100/y)) + + def pulse(self): + self.progress.set_text("Loading...") + self.progress.pulse() |