From 36ae2fe607be07ee1350ff0c1062f4d57efff5fe Mon Sep 17 00:00:00 2001 From: TG-Techie <39284876+TG-Techie@users.noreply.github.com> Date: Tue, 4 Jun 2019 22:15:11 -0400 Subject: [PATCH] updating to 4.0.1 tried this stock on pyportal and did not work as the api no longer supports position as a kwarg for the location. fixed with simple re-naming. --- examples/display_text_textarea_boundingbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/display_text_textarea_boundingbox.py b/examples/display_text_textarea_boundingbox.py index 97ddac1..ac981b8 100644 --- a/examples/display_text_textarea_boundingbox.py +++ b/examples/display_text_textarea_boundingbox.py @@ -28,7 +28,7 @@ color_palette[0] = 0xFFFFFF bg_sprite = displayio.TileGrid(color_bitmap, pixel_shader=color_palette, - position=(0, 0)) + x=0, y=0) splash.append(bg_sprite) # Load the font @@ -50,7 +50,7 @@ textbg_palette[0] = 0xFF0000 textbg_sprite = displayio.TileGrid(textbg_bitmap, pixel_shader=textbg_palette, - position=(text.x+dims[0], text.y+dims[1])) + x=text.x+dims[0], y=text.y+dims[1]) splash.append(textbg_sprite) splash.append(text) board.DISPLAY.refresh_soon()