From: Michael Tremer Date: Wed, 5 May 2021 22:02:40 +0000 (+0000) Subject: Show a congratulations message when the installation is complete X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04a8dabe026ea73ba48f9eb44965cecbefa19d82;p=people%2Fms%2Fbricklayer.git Show a congratulations message when the installation is complete Signed-off-by: Michael Tremer --- diff --git a/src/python/__init__.py b/src/python/__init__.py index 69373d4..93dc26f 100644 --- a/src/python/__init__.py +++ b/src/python/__init__.py @@ -72,6 +72,9 @@ class Bricklayer(object): lang.SelectLanguage, step.Welcome, disk.SelectDisk, + + # Done! + step.Congratulations, ) def __call__(self): diff --git a/src/python/step.py b/src/python/step.py index db9340c..1e6c930 100644 --- a/src/python/step.py +++ b/src/python/step.py @@ -83,6 +83,24 @@ class Welcome(InteractiveStep): ) +class Congratulations(InteractiveStep): + """ + Shows a message that the installation is complete + """ + def run(self, tui): + tui.message( + _("Congratulations"), + _( + "The installation has been completed successfully." + "\n\n" + "You can now safely remove any media used for the installation." + ), + buttons=[_("Finish")], + + # Make the window a litte bit bigger + width=50, + ) + class UnattendedWarning(Step): @property def enabled(self):