Exemplo n.º 1
0
 def __init__(self, name, x, y, angle=0, value=''):
     Point.__init__(self, name)
     self.create_evaluators(x=(x, float), y=(y, float), 
                            angle=(angle, float))
     self.parameters['value'] = StrEvaluator(self, value)
     self.pads = {}
     self._i = 1
     
     self.priority = 1
     
     self.light_color = (0, 255, 0)
     self.dark_color  = (0, 150, 0)
Exemplo n.º 2
0
 def __init__(self, name='perp', parent='parent', perp='perp', offset=0.0):
     Point.__init__(self, name)
     self.create_evaluators(parent=(parent, Point),
                            perp=(perp, Point),
                            offset=(offset, float))
Exemplo n.º 3
0
 def __init__(self, name='free_point', x=0, y=0):
     Point.__init__(self, name)
     self.create_evaluators(x=(x, float), y=(y, float))
Exemplo n.º 4
0
 def __init__(self, name='linked_point', parent='', dx=0, dy=0):
     Point.__init__(self, name)
     self.create_evaluators(dx=(dx, float),
                            dy=(dy, float),
                            parent=(parent, Point))