예제 #1
0
파일: zap.py 프로젝트: luke202001/tpch-kit
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)
예제 #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)))
예제 #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)))
예제 #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)))
예제 #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)))
예제 #6
0
파일: zap.py 프로젝트: BasilN/LED_Project
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)