]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
tui: Receive the title in the start callback
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Mar 2025 12:01:54 +0000 (12:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Mar 2025 12:01:54 +0000 (12:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/tui.py

index 11ac260cb5621a3f1143e3289fea0cb63916f543..10c2a61bcd581223d1ed5459ccdbc1813bf9f419 100644 (file)
@@ -409,10 +409,14 @@ class ProgressWindow(Window):
                # Close the window
                self.finish()
 
-       def start(self, max_value=None):
+       def start(self, title=None, max_value=None):
                """
                        Starts the progress, i.e. shows the window
                """
+               # Update the title
+               if title:
+                       self.title = title
+
                # Update the maximum value
                if max_value:
                        self.max_value = max_value