Update examples/block_text.py

Co-authored-by: Benito López <belono@users.noreply.github.com>
This commit is contained in:
Patrick Kanzler 2024-08-25 00:50:54 +02:00 committed by GitHub
parent a831fd3cfa
commit 5894f0aeeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ p = printer.Usb(0x04B8, 0x0E20)
for i in [20, 30, 40, 60]:
p.set_with_default(custom_size=True, width=3, height=3, underline=True)
p.textln("Blk-txt(%d col)" % i)
p.textln(f"Blk-txt({i} col)")
p.set_with_default()
p.block_text(txt, columns=i)