Module scop2 :: Class Constraint
[hide private]
[frames] | no frames]

Class Constraint

source code

object --+
         |
        Constraint
Known Subclasses:

Constraint base class.

Instance Methods [hide private]
 
setWeight(self, weight)
Sets weight of constraint.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setWeight(self, weight)

source code 

Sets weight of constraint.

  • Argument:
    • weight: Weight of the constraint representing importance of constraint.. Positive integer or string "inf."
  • Example usage:
    >>> L.setWeight("inf")