From addd26004c109837f89e560e6e838f7d650fe5b9 Mon Sep 17 00:00:00 2001 From: Borzutzki Robert Date: Mon, 25 Nov 2024 23:11:01 +0100 Subject: [PATCH] change --- examples/date-diff.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/date-diff.py b/examples/date-diff.py index a49a376..c7002cf 100644 --- a/examples/date-diff.py +++ b/examples/date-diff.py @@ -64,12 +64,12 @@ def init_monitor(): # Drawing on the Horizontal image logging.info("1.Drawing on the Horizontal image...") - drawblack.text((4, 0), 'Lieber Reinhold, in nur noch: ' + str(duration.days) + " Tagen", font = font12, fill = 0) - drawblack.text((4, 14), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font14, fill = 0) - drawblack.text((4, 30), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0) - drawblack.text((4, 46), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0) - drawblack.text((4, 62), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0) - drawblack.text((4, 77), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0) + drawblack.text((4, 0), 'Lieber Reinhold, in: ' + str(duration.days) + " Tagen", font = font12, fill = 0) + drawblack.text((4, 13), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font14, fill = 0) + drawblack.text((4, 28), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0) + drawblack.text((4, 43), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0) + drawblack.text((4, 58), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0) + drawblack.text((4, 73), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))