Exemple #1
0
 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
Exemple #2
0
 def __init__(self, name, cornerA, cornerB, cornerC):
     Shape.__init__(self, name)
     self.create_evaluators(cornerA=(cornerA, Point),
                            cornerB=(cornerB, Point),
                            cornerC=(cornerC, Point))
Exemple #3
0
 def __init__(self, name='circle', center='c', edge='e'):
     Shape.__init__(self, name)
     self.create_evaluators(center=(center, Point),
                            edge=(edge, Point))
Exemple #4
0
 def __init__(self, name='rect', cornerA='', cornerB=''):
     Shape.__init__(self, name)
     self.create_evaluators(cornerA=(cornerA, Point),
                            cornerB=(cornerB, Point))