]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
tui: Don't try to automatically size the text on progress windows
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Mar 2025 12:28:18 +0000 (12:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Mar 2025 12:28:18 +0000 (12:28 +0000)
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 <michael.tremer@ipfire.org>
src/python/tui.py

index 10c2a61bcd581223d1ed5459ccdbc1813bf9f419..a0ae7251811088cfbbd985b7ae7ea94b97b8058c 100644 (file)
@@ -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