Beispiel #1
0
 def shapes(self, value):
     if value is None:
         self._shapes = value
     elif type(value) in (list, tuple):
         for v in value:
             if type(v) is not MathTree:
                 raise TypeError(
                     'cad.shapes must be of type MathTree, not %s.'
                     % type(v))
         self._shapes = list(value)
     else:
         self._shapes = [MathTree.wrap(value)]
Beispiel #2
0
 def shape(self, value):
     self.shapes = [MathTree.wrap(value)]
Beispiel #3
0
 def shape(self, value): self.shapes = [MathTree.wrap(value)]
 @property