diff options
author | Matt Wilson <msw@redhat.com> | 1999-04-30 22:45:45 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-04-30 22:45:45 +0000 |
commit | 4167d42e1b65de0071675b01d2cd5f3474f7d727 (patch) | |
tree | 7d3c7430734a58adb62e8c852ea4ab0c2afdb7b2 /gui.py | |
parent | cf8b7716c7b0718ec9f2b8ec58e0edc7dbcf93a3 (diff) | |
download | anaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.tar.gz anaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.tar.xz anaconda-4167d42e1b65de0071675b01d2cd5f3474f7d727.zip |
Added progress bars to gui.py
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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: |