From: Joshua Lock Date: Tue, 1 Feb 2011 15:23:47 +0000 (+0000) Subject: bitbake/progress: add method to pulse the progress bar X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c405f0d7bdc765cbac3197890634c33d112f24;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. (From Poky rev: fb62c54e13e875dd81e0b5220c54a7753b4d5fa2) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/progress.py b/lib/bb/ui/crumbs/progress.py index 36eca382940..ce3a6c37b48 100644 --- a/lib/bb/ui/crumbs/progress.py +++ b/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()