From 125f8181dfc1a02297058b6642ac9bacf7a812c0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 15 Mar 2025 12:01:54 +0000 Subject: [PATCH] tui: Receive the title in the start callback Signed-off-by: Michael Tremer --- src/python/tui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.3