diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-12-13 22:47:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-12-13 22:47:28 +0000 |
commit | edbcaa3b99e07d528c46b0117f5eddd3556dc18c (patch) | |
tree | c5aac8a56d9891b60241431448e397a7acbd5807 /cmdline.py | |
parent | 44223e46715ee89dd63c9554ec9a17919ca3f091 (diff) | |
download | anaconda-edbcaa3b99e07d528c46b0117f5eddd3556dc18c.tar.gz anaconda-edbcaa3b99e07d528c46b0117f5eddd3556dc18c.tar.xz anaconda-edbcaa3b99e07d528c46b0117f5eddd3556dc18c.zip |
2005-12-13 Jeremy Katz <katzj@redhat.com>
* cmdline.py (ProgressWindow.__init__): Adjust for new API
Diffstat (limited to 'cmdline.py')
-rw-r--r-- | cmdline.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmdline.py b/cmdline.py index d975f5797..5ead778e6 100644 --- a/cmdline.py +++ b/cmdline.py @@ -43,7 +43,10 @@ class ProgressWindow: if amount == self.total: print _("Completed"), - def __init__(self, title, text, total): + def refresh(self): + pass + + def __init__(self, title, text, total, updpct = 0.05): self.total = total print text print _("In progress... "), @@ -59,8 +62,8 @@ class InstallInterface: def shutdown(self): pass - def progressWindow(self, title, text, total): - return ProgressWindow(title, text, total) + def progressWindow(self, title, text, total, updpct = 0.05): + return ProgressWindow(title, text, total, updpct) def messageWindow(self, title, text, type="ok", default = None, custom_icon = None, custom_buttons = []): |