From cb5e88f2e71effd6a6fb8b4d377731b831d7623d Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 2 Aug 2021 17:53:51 -0500 Subject: [PATCH] cp7 updates and text position --- Say_Their_Names_LEDMatrix/code.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Say_Their_Names_LEDMatrix/code.py b/Say_Their_Names_LEDMatrix/code.py index 90c68dc84..62256285e 100644 --- a/Say_Their_Names_LEDMatrix/code.py +++ b/Say_Their_Names_LEDMatrix/code.py @@ -137,7 +137,7 @@ blm_font = [None, None, None] for line in range(3): label = adafruit_display_text.label.Label( - terminalio.FONT, color=0xFFFFFF, x=2, y=line * 10 - 2, max_glyphs=16 + terminalio.FONT, color=0xFFFFFF, x=2, y=line * 10 + 5 ) blm_font[line] = label @@ -147,14 +147,12 @@ label = adafruit_display_text.label.Label( terminalio.FONT, color=0xFFFFFF, - x=36, - y=line * 14, # these will center text when anchor is top-middle - max_glyphs=16, + anchored_position=(32, line * 14) # these will center text when anchor is top-middle ) label.anchor_point = (0.5, 0) names_font[line] = label -g = displayio.Group(max_size=10) +g = displayio.Group() for line in blm_font: g.append(line) for line in names_font: