瀏覽代碼

Whitespace changes

Michael Pitidis 13 年之前
父節點
當前提交
181cd3522b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      shape.py

+ 2 - 0
shape.py

@@ -75,6 +75,7 @@ class Shape(object):
         for p in self.points[1:]:
             path.lineTo(QPointF(p))
         return path.contains(QPointF(point))
+
     def moveBy(self,dx,dy):
         index=0
         for point in self.points:
@@ -82,6 +83,7 @@ class Shape(object):
            newYPos=point.y()+dy
            self.points[index]=QPoint(newXPos,newYPos)
            index +=1
+
     def __len__(self):
         return len(self.points)