From: Michael Tremer Date: Sat, 15 Mar 2025 12:28:18 +0000 (+0000) Subject: tui: Don't try to automatically size the text on progress windows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4102f40fcc2bc39a87b80f0ae6c965218e69aad;p=people%2Fms%2Fbricklayer.git tui: Don't try to automatically size the text on progress windows As we will change the status during the operation and we don't set a text at the beginning, the textbox is sized as zero length and therefore the status was never seen. This patch always makes the text box one line high. Signed-off-by: Michael Tremer --- diff --git a/src/python/tui.py b/src/python/tui.py index 10c2a61..a0ae725 100644 --- a/src/python/tui.py +++ b/src/python/tui.py @@ -380,7 +380,8 @@ class ProgressWindow(Window): self.max_value = max_value # Make textbox - self.textbox = snack.TextboxReflowed(self.width, self.text) + self.textbox = snack.Textbox(self.width, height=1, + text=self.text, scroll=False, wrap=True) def _make_window(self): # Create the grid