コード例 #1
0
ファイル: wall.py プロジェクト: antoinevg/phail
 def draw(self, canvas):
   PlatoBody.draw(self, canvas)
   
   #if self._newton is not None: # TODO - move to base class
     
     
   #x,y = self.position
   #canvas.move_to(x,y)
   
   # draw a square
   canvas.set_line_width(1.0) # BUG with thick borders we end up going over the decorators... should we inset ? or should we move the decorators further out ?
   canvas.set_source_rgb(0.5, 0.3, 0.0)
   canvas.rectangle(self.left, self.top, self.width, self.height)
   canvas.fill()