Exemplo n.º 1
0
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)
Exemplo n.º 2
0
 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)))
Exemplo n.º 3
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)))
Exemplo n.º 4
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)))
Exemplo n.º 5
0
    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)))
Exemplo n.º 6
0
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)