summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-04-30 22:45:45 +0000
committerMatt Wilson <msw@redhat.com>1999-04-30 22:45:45 +0000
commit4167d42e1b65de0071675b01d2cd5f3474f7d727 (patch)
tree7d3c7430734a58adb62e8c852ea4ab0c2afdb7b2 /gui.py
parentcf8b7716c7b0718ec9f2b8ec58e0edc7dbcf93a3 (diff)
downloadanaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.tar.gz
anaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.tar.xz
anaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.zip
Added progress bars to gui.py
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index d9356a227..4a727dc73 100755
--- a/gui.py
+++ b/gui.py
@@ -130,6 +130,12 @@ class PartitionWindow:
class InstallProgressWindow:
+ def setPackageScale(self, amount, total):
+ self.progress.update((amount * 1.0)/ total)
+ while events_pending():
+ mainiteration(FALSE)
+
+
def setPackage(self, name):
print name
self.label.set_text (name)
@@ -144,9 +150,13 @@ class InstallProgressWindow:
self.window.set_border_width(10)
self.window.set_title('Installing Packages')
self.window.set_position(WIN_POS_CENTER)
+ self.progress = GtkProgressBar()
+ vbox = GtkVBox()
self.label = GtkLabel()
self.label.set_line_wrap (TRUE)
- self.window.add(self.label)
+ vbox.pack_start(self.label, TRUE, TRUE, 0)
+ vbox.pack_start(self.progress, TRUE, TRUE, 0)
+ self.window.add(vbox)
self.window.show_all()
class InstallInterface: