From: Michael Tremer Date: Sat, 15 Mar 2025 12:01:54 +0000 (+0000) Subject: tui: Receive the title in the start callback X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=125f8181dfc1a02297058b6642ac9bacf7a812c0;p=people%2Fms%2Fbricklayer.git tui: Receive the title in the start callback Signed-off-by: Michael Tremer --- diff --git a/src/python/tui.py b/src/python/tui.py index 11ac260..10c2a61 100644 --- a/src/python/tui.py +++ b/src/python/tui.py @@ -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