******************** wx.LayoutConstraints ******************** Inheritance diagram for `wx.LayoutConstraints`: | .. inheritance-diagram:: wx.LayoutConstraints | Description =========== Objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent. The class consists of the following eight constraints of class `wx.IndividualLayoutConstraint `_, some or all of which should be accessed directly to set the appropriate constraints. * **left:** represents the left hand edge of the window * **right:** represents the right hand edge of the window * **top:** represents the top edge of the window * **bottom:** represents the bottom edge of the window * **width:** represents the width of the window * **height:** represents the height of the window * **centreX:** represents the horizontal centre point of the window * **centreY:** represents the vertical centre point of the window Most constraints are initially set to have the relationship `wx.Unconstrained`, which means that their values should be calculated by looking at known constraints. The exceptions are `width` and `height`, which are set to `wx.AsIs` to ensure that if the user does not specify a constraint, the existing width and height will be used, to be compatible with panel items which often have take a default size. If the constraint is `wx.AsIs`, the dimension will not be changed. .. warning:: constraints are now deprecated and you should use `sizers `_ instead. .. seealso:: `wx.IndividualLayoutConstraint `_, `wx.Window.SetConstraints `_ Derived From ^^^^^^^^^^^^^ * `wx.Object `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `AreSatisfied <#AreSatisfied>`_ * `SatisfyConstraints <#SatisfyConstraints>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `bottom <#bottom>`_ * `centreX <#centreX>`_ * `centreY <#centreY>`_ * `height <#height>`_ * `left <#left>`_ * `right <#right>`_ * `top <#top>`_ * `width <#width>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__() `No docstrings available for this method.` -------- .. method:: AreSatisfied() `No docstrings available for this method.` -------- .. method:: SatisfyConstraints(win) Tries to satisfy the constraints. **Parameters:** * `win` (`wx.Window `_) | **Returns:** `(areSatisfied, noChanges)` -------- Properties ^^^^^^^^^^ .. attribute:: bottom Constraint for the bottom edge. .. attribute:: centreX Constraint for the horizontal centre point. .. attribute:: centreY Constraint for the vertical centre point. .. attribute:: height Constraint for the height. .. attribute:: left Constraint for the left edge. .. attribute:: right Constraint for the right edge. .. attribute:: top Constraint for the top edge. .. attribute:: width Constraint for the width.