CircuitPython/displayio.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
--- a/CircuitPython/displayio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/displayio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -11,15 +11,10 @@
     pass
 
 class Bitmap():
-    def __init__(self, width, height, value_count):
-        pass
+    width = 0
+    height = 0
     
-    @property
-    def width(self):
-        pass
-    
-    @property
-    def height(self):
+    def __init__(self, width, height, value_count):
         pass
 
 class ColorConverter():
@@ -30,6 +25,12 @@
         pass
 
 class Display():
+    brightness = 0
+    auto_brightness = 0
+    width = 0
+    height = 0
+    bus = 0
+    
     def __init__(self, display_bus, init_sequence, *, width, height,
                  colstart=0, rowstart=0, rotation=0, color_depth=16,
                  set_column_command=0x2a, set_row_command=0x2b,
@@ -46,26 +47,6 @@
     
     def wait_for_frame(self):
         pass
-    
-    @property
-    def brightness(self):
-        pass
-    
-    @property
-    def auto_brightness(self):
-        pass
-    
-    @property
-    def width(self):
-        pass
-    
-    @property
-    def height(self):
-        pass
-    
-    @property
-    def bus(self):
-        pass
 
 class FourWire():
     def __init__(self, spi_bus, *, command, chip_select, reset=None):
@@ -75,19 +56,11 @@
         pass
 
 class Group():
-    def __init__(self, *, max_size=4, scale=1, x=0, y=0):
-        pass
-    
-    @property
-    def scale(self):
-        pass
+    scale = 0
+    x = 0
+    y = 0
     
-    @property
-    def x(self):
-        pass
-    
-    @property
-    def y(self):
+    def __init__(self, *, max_size=4, scale=1, x=0, y=0):
         pass
     
     def append(self, layer):
@@ -100,15 +73,10 @@
         pass
 
 class OnDiskBitmap():
-    def __init__(self, file):
-        pass
+    width = 0
+    height = 0
     
-    @property
-    def width(self):
-        pass
-    
-    @property
-    def height(self):
+    def __init__(self, file):
         pass
 
 class Palette():
@@ -136,18 +104,10 @@
         pass
 
 class TileGrid():
+    x = 0
+    y = 0
+    pixel_shader = 0
+    
     def __init__(self, bitmap, *, pixel_shader, width=1, height=1,
                  tile_width=None, tile_height=None, default_tile=0, x=0, y=0):
         pass
-    
-    @property
-    def x(self):
-        pass
-    
-    @property
-    def y(self):
-        pass
-    
-    @property
-    def pixel_shader(self):
-        pass

eric ide

mercurial