summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-12-12 23:38:20 +0000
committerJeremy Katz <katzj@redhat.com>2005-12-12 23:38:20 +0000
commite54f4e4c9910dfa3b28abff8e58d9143727cef12 (patch)
tree999296d173e29f2fa579aa988c596321485119e3 /text.py
parent1018015cd32884eb17244e81fc5fe44de5681eb5 (diff)
downloadanaconda-e54f4e4c9910dfa3b28abff8e58d9143727cef12.tar.gz
anaconda-e54f4e4c9910dfa3b28abff8e58d9143727cef12.tar.xz
anaconda-e54f4e4c9910dfa3b28abff8e58d9143727cef12.zip
2005-12-12 Jeremy Katz <katzj@redhat.com>
* yuminstall.py (YumDepSolveProgress.tscheck): Enhance to allow knowing how many things are going to be added. Put the smarts about the "nice" update here instead of restartLoop (YumSorter.tsCheck): Feedback on packages being checked so the progress bar moves :-) * gui.py (ProgressWindow.__init__): Allow specifying the percentage to do updates at so that we can update more often on known "slow" progress bars * text.py (ProgressWindow): Matching prototype
Diffstat (limited to 'text.py')
-rw-r--r--text.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/text.py b/text.py
index 3e03c59f1..1fad4080b 100644
--- a/text.py
+++ b/text.py
@@ -125,7 +125,7 @@ class ProgressWindow:
def refresh(self):
pass
- def __init__(self, screen, title, text, total):
+ def __init__(self, screen, title, text, total, updpct):
self.screen = screen
width = 55
if (len(text) > width): width = len(text)
@@ -303,8 +303,8 @@ class InstallInterface:
pdb.post_mortem(tb)
os._exit(1)
- def progressWindow(self, title, text, total):
- return ProgressWindow(self.screen, title, text, total)
+ def progressWindow(self, title, text, total, updpct = 0.05):
+ return ProgressWindow(self.screen, title, text, total, updpct)
def messageWindow(self, title, text, type="ok", default = None,
custom_icon=None, custom_buttons=[]):