parameters: (self, type, constraining, constrained)
return_statement: return constraint
docstring: Add a constraint of the given type to the composite.
  
          constraining is the shape doing the constraining
          constrained is a list of shapes being constrained
docstring_summary: Add a constraint of the given type to the composite.
docstring_tokens: Add a constraint of the given type to the composite .
function: def AddSimpleConstraint(self, type, constraining, constrained):
          """Add a constraint of the given type to the composite.
  
          constraining is the shape doing the constraining
          constrained is a list of shapes being constrained
          """
          constraint = Constraint(type, constraining, constrained)
          if constraint._constraintId == 0:
              constraint._constraintId = wx.NewId()
          self._constraints.append(constraint)
          return constraint
function_tokens: def AddSimpleConstraint ( self , type , constraining , constrained ) : constraint = Constraint ( type , constraining , constrained ) if constraint . _constraintId == 0 : constraint . _constraintId = wx . NewId ( ) self . _constraints . append ( constraint ) return constraint