From: foamyguy Date: Thu, 2 Dec 2021 04:00:00 +0000 (-0600) Subject: fix _shade() looking up color on Palette. update docs/conf.py and setup.py for python3.7 X-Git-Tag: 0.8.0~1^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/dbce2fbfa5c147d0b4959947ce53df6d2c638d84?ds=sidebyside fix _shade() looking up color on Palette. update docs/conf.py and setup.py for python3.7 --- 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",