better 2 lines

This commit is contained in:
Peter D. Gray 2024-03-21 16:30:29 -04:00
parent 2728aa6db0
commit 697ebc6599
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -483,9 +483,11 @@ class Display:
# show a simple message "fullscreen".
self.clear()
y = CHARS_H // 3
self.text(None, y, msg)
if line2:
self.text(None, y+2, line2)
x = self.text(None, y, msg)
self.text(x-self.width(msg), y+2, line2, dark=True)
else:
self.text(None, y, msg)
if percent is not None:
self.progress_bar(percent)
self.show()