summaryrefslogtreecommitdiffstats
path: root/cmdline.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-11-28 12:31:53 -0500
committerJeremy Katz <katzj@redhat.com>2007-11-29 16:12:01 -0500
commit506e264879a586c2ec390ae489c900fa5b1cedba (patch)
tree31b3bea62554096d06230eb4c9a9fa9e2dd384be /cmdline.py
parentea50419b73c5c95fd5609b2432d7fdfaace67243 (diff)
downloadanaconda-506e264879a586c2ec390ae489c900fa5b1cedba.tar.gz
anaconda-506e264879a586c2ec390ae489c900fa5b1cedba.tar.xz
anaconda-506e264879a586c2ec390ae489c900fa5b1cedba.zip
add pulsing progress bars for gui. noop (no progress bar) for text
Diffstat (limited to 'cmdline.py')
-rw-r--r--cmdline.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmdline.py b/cmdline.py
index c343eb91b..972ce9cf4 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -38,6 +38,9 @@ class ProgressWindow:
def pop(self):
print ""
+ def pulse(self):
+ pass
+
def set(self, amount):
if amount == self.total:
print _("Completed"),
@@ -45,7 +48,7 @@ class ProgressWindow:
def refresh(self):
pass
- def __init__(self, title, text, total, updpct = 0.05):
+ def __init__(self, title, text, total, updpct = 0.05, pulse = False):
self.total = total
print text
print _("In progress... "),
@@ -61,8 +64,8 @@ class InstallInterface:
def shutdown(self):
pass
- def progressWindow(self, title, text, total, updpct = 0.05):
- return ProgressWindow(title, text, total, updpct)
+ def progressWindow(self, title, text, total, updpct = 0.05, pulse = False):
+ return ProgressWindow(title, text, total, updpct, pulse)
def kickstartErrorWindow(self, text):
s = _("The following error was found while parsing your "