예제 #1
0
파일: pcb.py 프로젝트: thatpixguy/fab
 def __init__(self, name, start, mid, end, width):
     Shape.__init__(self, name)
     self.create_evaluators(start=(start, Component.Pad),
                            mid=(mid, None),
                            end=(end, Component.Pad),
                            width=(width, float))
                            
     self.light_color = (0, 255, 0)
     self.dark_color  = (0, 150, 0)
     
     self.priority = 2
예제 #2
0
파일: shapes2d.py 프로젝트: thatpixguy/fab
 def __init__(self, name, cornerA, cornerB, cornerC):
     Shape.__init__(self, name)
     self.create_evaluators(cornerA=(cornerA, Point),
                            cornerB=(cornerB, Point),
                            cornerC=(cornerC, Point))
예제 #3
0
파일: shapes2d.py 프로젝트: thatpixguy/fab
 def __init__(self, name='circle', center='c', edge='e'):
     Shape.__init__(self, name)
     self.create_evaluators(center=(center, Point),
                            edge=(edge, Point))
예제 #4
0
파일: shapes2d.py 프로젝트: thatpixguy/fab
 def __init__(self, name='rect', cornerA='', cornerB=''):
     Shape.__init__(self, name)
     self.create_evaluators(cornerA=(cornerA, Point),
                            cornerB=(cornerB, Point))