The Constraint
class helps specify how child shapes are laid out
with respect to siblings and parents.
wx.core.deprecated.<locals>.DeprecatedClassProxy
Default class constructor. |
|
Return True if a and b are approximately equal (for the purposes |
|
Evaluate this constraint and return True if anything changed. |
|
Sets the horizontal and vertical spacing for the constraint. |
Constraint
(object)¶The Constraint
class helps specify how child shapes are laid out
with respect to siblings and parents.
__init__
(self, type, constraining, constrained)¶Default class constructor.
type – see ConstraintType
for valid types
constraining – the constraining Shape
constrained – the constrained Shape
Equals
(self, a, b)¶Return True if a and b are approximately equal (for the purposes of evaluating the constraint).
a – ???
b – ???
Evaluate
(self)¶Evaluate this constraint and return True if anything changed.
SetSpacing
(self, x, y)¶Sets the horizontal and vertical spacing for the constraint.
x – the x position
y – the y position