From a23a2f6dea1be750fbe9462fce25a49b8f1cb61b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 14 Nov 2026 10:47:41 +0100 Subject: Toolbar buttons get 32px icons with the label under the icon. sd-cli prints its tile progress bar on stdout, which was never read. Merge stdout and stderr, parse the last "n/m -" step and show it in a status bar progress bar. Before the first step it shows a busy bar, so a long model load does not look like a hang. Co-Authored-By: Claude Opus 5.5 --- test_upscale_qt.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test_upscale_qt.py') diff --git a/test_upscale_qt.py b/test_upscale_qt.py index 37e0484..7d7307c 100644 --- a/test_upscale_qt.py +++ b/test_upscale_qt.py @@ -60,6 +60,13 @@ def test_args(): '-i', '/in.png', '-o', '/out.png'] +def test_progress(): + out = (b'[I] upscaling\n\r |====> | 1/4 - 1.09it/s\x1b[K' + b'\r |=======> | 2/4 - 3.89it/s\x1b[K') + assert uq.progress(out) == (2, 4) + assert uq.progress(b'[I] load model') is None + + def test_save_over(): path = os.path.join(TMP, 'photo.JPG') # uppercase suffix on purpose small = QImage(4, 4, QImage.Format.Format_RGB32) -- cgit v1.2.3