Beispiel #1
0
 def draw_inputs(self, context):
   inputs = self.target.receives()
   i = 0
   for label in inputs:
     x = -0.55
     y = -0.45 + (i * (1.0 / len(inputs)))
     Primitives.connector(context, x, y, label, 0.0, 0.0, 1.0)
     i = i + 1
Beispiel #2
0
 def draw_outputs(self, context):
   num_outputs = 2
   for i in range(num_outputs):
     x = 0.25
     y = -0.45 + (i * (1.0 / num_outputs))
     Primitives.connector(context, x, y, '', 1.0, 0.0, 0.0)