Beispiel #1
0
 def layout_star(self, obj, index, context, plac="*"):
     context = push(context, (obj, index))
     hole = obj.holes[index]
     for partial in hole.partials:
         frame = self.layout_hook(partial.a, context)
         frame.hole = partial
         yield frame
     if len(hole.a) == 0:
         frame = string(self.font(plac).mul(gray))
         frame.hole = hole
         yield frame
Beispiel #2
0
 def layout_dot(self, obj, index, context):
     context = push(context, (obj, index))
     hole = obj.holes[index]
     frame = self.layout_hook(hole.a, context)
     frame.hole = hole
     return frame