summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-02-01 15:23:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-24 15:54:53 +0000
commitfb62c54e13e875dd81e0b5220c54a7753b4d5fa2 (patch)
tree972358b18fd82b11e83ded04384fc74bce040622 /bitbake
parent7f8aa691c52547ee5f1272a7931ca9cccd1a120a (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/progress.py4
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 36eca38294..ce3a6c37b4 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):
15 def update(self, x, y): 15 def update(self, x, y):
16 self.progress.set_fraction(float(x)/float(y)) 16 self.progress.set_fraction(float(x)/float(y))
17 self.progress.set_text("%2d %%" % (x*100/y)) 17 self.progress.set_text("%2d %%" % (x*100/y))
18
19 def pulse(self):
20 self.progress.set_text("Loading...")
21 self.progress.pulse()