def __draw_zap(p1, p2, style, pat): x = copy.deepcopy(p1) x.extend(p2) canvas.polygon(None, pat, x) canvas.lines(style, p1) canvas.lines(style, p2)
def draw(self, x, y): self.predraw_check() canvas.polygon(self.line_style, self.fill_style, ((x, y - self.size / 2.0), (x - self.size / 1.6, y + self.size / 2.0), (x + self.size / 1.6, y + self.size / 2.0)))
def draw(self, x, y): self.predraw_check() # move to the bottom-left corner canvas.polygon(self.line_style, self.fill_style, ((x - self.size / 1.4, y), (x, y + self.size / 1.4), (x + self.size / 1.4, y), (x, y - self.size / 1.4)))
def draw (self, x, y): self.predraw_check() # move to the bottom-left corner canvas.polygon(self.line_style, self.fill_style, ((x-self.size/1.4, y), (x, y+self.size/1.4), (x+self.size/1.4, y), (x, y-self.size/1.4)))
def draw (self, x, y): self.predraw_check() canvas.polygon(self.line_style, self.fill_style, ((x, y-self.size/2.0), (x-self.size/1.6, y+self.size/2.0), (x+self.size/1.6, y+self.size/2.0)))