summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-09 02:19:10 +0000
committerMatt Wilson <msw@redhat.com>2001-07-09 02:19:10 +0000
commit0b3b2c9d15c0434fdd15bcef8c2dd0d7d5c1635c (patch)
tree16ce8033c96c08f47208a699c8200c676472cdbb
parent32f2d230c8caad905afb137e0521ca5683f08347 (diff)
downloadanaconda-0b3b2c9d15c0434fdd15bcef8c2dd0d7d5c1635c.tar.gz
anaconda-0b3b2c9d15c0434fdd15bcef8c2dd0d7d5c1635c.tar.xz
anaconda-0b3b2c9d15c0434fdd15bcef8c2dd0d7d5c1635c.zip
use that handy string.center function I saw
-rw-r--r--textw/complete_text.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/textw/complete_text.py b/textw/complete_text.py
index 791108a03..4d1dbe45a 100644
--- a/textw/complete_text.py
+++ b/textw/complete_text.py
@@ -17,10 +17,8 @@ from translate import _
class FinishedWindow:
def __call__ (self, screen):
- msg = _("<Return> to reboot")
- padding = " " * ((screen.width - len(msg)) / 2)
- text = "%s%s%s" % (padding, msg, padding)
- screen.pushHelpLine (text)
+ screen.pushHelpLine (string.center(_("<Return> to reboot"),
+ screen.width))
rc = ButtonChoiceWindow (screen, _("Complete"),
_("Congratulations, your Red Hat Linux installation is "
@@ -41,10 +39,8 @@ class FinishedWindow:
class ReconfigFinishedWindow:
def __call__ (self, screen):
- msg = _("<Return> to exit")
- padding = " " * ((screen.width - len(msg)) / 2)
- text = "%s%s%s" % (padding, msg, padding)
- screen.pushHelpLine (text)
+ screen.pushHelpLine (string.center(_("<Return> to exit"),
+ screen.width))
rc = ButtonChoiceWindow (screen, _("Complete"),
_("Congratulations, configuration is complete.\n\n"