]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
remove setters
authorfoamyguy <foamyguy@gmail.com>
Sat, 14 May 2022 16:36:57 +0000 (11:36 -0500)
committerfoamyguy <foamyguy@gmail.com>
Sat, 14 May 2022 16:36:57 +0000 (11:36 -0500)
displayio/_tilegrid.py

index f8d47c99bf75b153e25d7f7f5792c335b984a8b9..35f5ac14ae48ee24e5a9ead38497630333347a60 100644 (file)
@@ -414,33 +414,17 @@ class TileGrid:
         """Width in tiles"""
         return self._width
 
-    @width.setter
-    def width(self, new_width):
-        self._width = new_width
-
     @property
     def height(self):
         """Height in tiles"""
         return self._height
 
-    @height.setter
-    def height(self, new_height):
-        self._height = new_height
-
     @property
     def tile_width(self):
         """Width of each tile in pixels"""
         return self._tile_width
 
-    @tile_width.setter
-    def tile_width(self, new_tile_width):
-        self._tile_width = new_tile_width
-
     @property
     def tile_height(self):
         """Height of each tile in pixels"""
         return self._tile_height
-
-    @tile_height.setter
-    def tile_height(self, new_tile_height):
-        self._tile_height = new_tile_height