From 97c405f0d7bdc765cbac3197890634c33d112f24 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 1 Feb 2011 15:23:47 +0000 Subject: [PATCH] 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 --- lib/bb/ui/crumbs/progress.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.47.2