Exemple #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)
Exemple #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)))
Exemple #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)))
Exemple #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)))
Exemple #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)))
Exemple #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)