コード例 #1
0
ファイル: GWTCanvasImplIE6.py プロジェクト: Afey/pyjs
 def rect(self, x, y, w, h):
     self.pathStr.append(PathElement.moveTo(x, y, self))
     self.pathStr.append(PathElement.lineTo(x + w, y, self))
     self.pathStr.append(PathElement.lineTo(x + w, y + h, self))
     self.pathStr.append(PathElement.lineTo(x, y + h, self))
     self.pathStr.append(PathElement.closePath())
     self.currentX = x
     self.currentY = y + h
コード例 #2
0
 def rect(self, x, y, w, h):
     self.pathStr.append(PathElement.moveTo(x, y, self))
     self.pathStr.append(PathElement.lineTo(x + w, y, self))
     self.pathStr.append(PathElement.lineTo(x + w, y + h, self))
     self.pathStr.append(PathElement.lineTo(x, y + h, self))
     self.pathStr.append(PathElement.closePath())
     self.currentX = x
     self.currentY = y + h
コード例 #3
0
ファイル: GWTCanvasImplIE6.py プロジェクト: Afey/pyjs
 def moveTo(self, x, y):
     self.pathStr.append(PathElement.moveTo(x, y, self))
     self.currentX = x
     self.currentY = y
コード例 #4
0
 def moveTo(self, x, y):
     self.pathStr.append(PathElement.moveTo(x, y, self))
     self.currentX = x
     self.currentY = y