From dbce2fbfa5c147d0b4959947ce53df6d2c638d84 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 1 Dec 2021 22:00:00 -0600 Subject: [PATCH] fix _shade() looking up color on Palette. update docs/conf.py and setup.py for python3.7 --- displayio/tilegrid.py | 2 +- docs/conf.py | 2 +- setup.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/displayio/tilegrid.py b/displayio/tilegrid.py index 8532ac5..e2a4653 100644 --- a/displayio/tilegrid.py +++ b/displayio/tilegrid.py @@ -179,7 +179,7 @@ class TileGrid: def _shade(self, pixel_value): if isinstance(self._pixel_shader, Palette): - return self._pixel_shader[pixel_value]["rgba"] + return self._pixel_shader[pixel_value] if isinstance(self._pixel_shader, ColorConverter): return self._pixel_shader.convert(pixel_value) return pixel_value diff --git a/docs/conf.py b/docs/conf.py index 02e8c13..44577df 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,7 @@ extensions = [ # autodoc_mock_imports = ["digitalio", "busio"] intersphinx_mapping = { - "python": ("https://docs.python.org/3.4", None), + "python": ("https://docs.python.org/3.7", None), "CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None), } diff --git a/setup.py b/setup.py index 88d1a43..5e2a025 100644 --- a/setup.py +++ b/setup.py @@ -49,8 +49,7 @@ setup( "Topic :: System :: Hardware", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.7", ], # What does your project relate to? keywords="adafruit blinka circuitpython micropython displayio lcd tft display pitft", -- 2.49.0