summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-02-24 21:52:58 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-25 11:55:45 +0000
commit2ff96d664e8e003f64de42187fce9ad0f9646070 (patch)
treeaf872b949093152b41c244463b792b9a1722f9e9 /bitbake
parentc9e95d3363d28ae92eb9ed1ed560ad3769482f8a (diff)
downloadast2050-yocto-poky-2ff96d664e8e003f64de42187fce9ad0f9646070.zip
ast2050-yocto-poky-2ff96d664e8e003f64de42187fce9ad0f9646070.tar.gz
crumbs: add back progress implementation for depexp
The commit which introduced the new hob UI also deleted this class which is used by depexp. (Bitbake rev: d54dbe54cde8e0086bf1fb4926468e212660db53) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/progress.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/progress.py b/bitbake/lib/bb/ui/crumbs/progress.py
new file mode 100644
index 0000000..0c7ad96
--- /dev/null
+++ b/bitbake/lib/bb/ui/crumbs/progress.py
@@ -0,0 +1,20 @@
+import gtk
+
+class ProgressBar(gtk.Dialog):
+ def __init__(self, parent):
+
+ gtk.Dialog.__init__(self, flags=(gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT))
+ self.set_title("Parsing metadata, please wait...")
+ self.set_default_size(500, 0)
+ self.set_transient_for(parent)
+ self.progress = gtk.ProgressBar()
+ self.vbox.pack_start(self.progress)
+ self.show_all()
+
+ 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()
OpenPOWER on IntegriCloud