Commits

Virgil Dupras committed 59b4ce6

Added Rect.width and rect.height as w and h accessors in the geometry unit.

  • Participants
  • Parent commits 0e51375

Comments (0)

Files changed (1)

     def right(self, value):
         self.x = value - self.w
     
-
+    @property
+    def width(self):
+        return self.w
+    
+    @width.setter
+    def width(self, value):
+        self.w = value
+    
+    @property
+    def height(self):
+        return self.h
+    
+    @height.setter
+    def height(self, value):
+        self.h = value
+