Esempio n. 1
0
 def act_operations(self, ops, reverse=False):
     t = operation.transform(reverse)
     for op in ops:
         if t[op.__class__] == operation.Addition:
             self.add_prop(op.property)
         if t[op.__class__] == operation.Removal:
             self.del_prop(op.property)
Esempio n. 2
0
 def draw_operations(self, ops, reverse=False):
     t = operation.transform(reverse)
     for op in ops:
         print op
         if t[op.__class__] == operation.Removal:
             dprop = self.props_drawn.pop(op.property)
             dprop.allgroup.remove()
         elif t[op.__class__] == operation.Addition:
             p = op.property.place
             prop = op.property
             self.draw_property(prop, p)