]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
fix _shade() looking up color on Palette. update docs/conf.py and setup.py for python3.7
authorfoamyguy <foamyguy@gmail.com>
Thu, 2 Dec 2021 04:00:00 +0000 (22:00 -0600)
committerfoamyguy <foamyguy@gmail.com>
Thu, 2 Dec 2021 04:01:25 +0000 (22:01 -0600)
displayio/tilegrid.py
docs/conf.py
setup.py

index 8532ac5ece0055ee7dfe9426d516393592938d28..e2a4653b81cf7ccb4aa7b813b20b35c995fb8368 100644 (file)
@@ -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
index 02e8c13767bcbda9f5bf672baf042f3aaf881c69..44577df0436ba435de6cfd3d1a69875eb489a131 100644 (file)
@@ -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),
 }
 
index 88d1a43365e4076ba3b6c632b3b9195ebcd5479d..5e2a025318fc13a5b64fa950d403d303b43a704d 100644 (file)
--- 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",